日期:2014-05-16 浏览次数:20874 次
rem @echo off ::cd ../../.. echo cd set root_dir=%cd%\..\..\.. echo %root_dir% set toPath=%root_dir%\resources xcopy /S/Y res_module %toPath% pause
#!/bin/sh:/bin/bash
export PATH=/usr/bin:/bin:/sbin:/usr/sbin:$PATH
cur_dir=`pwd`
root_dir=`dirname $0`
echo "tools_path:"${root_dir}
toPath=${root_dir}/../classes
echo "target_path:"${toPath}
cd ${root_dir}
tmp_dir=${root_dir}/"tempDir"
rm -fr $tmp_dir
mkdir $tmp_dir
cp -r res_module/* $tmp_dir
find $tmp_dir -name ".svn" | xargs -i rm -fr {} \ ;
cp -r $tmp_dir/* ${toPath}
rm -fr $tmp_dir
cd $cur_dir
echo "deploy succ!"find dir -name "*.txt" -exec cp --parents {} tmp/ \;