#!/bin/bash
#descr:
#author:jinlongcui
srcDir=$(readlink -e -f $1)
dstDir=$(readlink -e -f $2)
(
if [ "$3" = "update" ] ; then
cd $srcDir && find . -type f -name "*.php" | xargs -n 1 -i cp -u -v --parents {} $dstDir
else
cd $srcDir && find . -type f -name "*.php"| xargs -n 1 -i cp -v --parents {} $dstDir
fi
)
阅读(1426) | 评论(0) | 转发(0) |