finance_web.sh
509 Bytes
#!/bin/bash
org_dir=`pwd`
script_dir=$(cd `dirname $0`; pwd)
dist_dir=$script_dir/dist/finance
if [ $# != 1 ]; then
echo Usage: $0 web_dir
exit 1
fi
web_dir=$1
echo "mkdir -p /data/face-web/www/web"
mkdir -p /data/face-web/www/web/finance
echo "rm -rf /data/face-web/www/web/finance/$web_dir"
rm -rf /data/face-web/www/web/$web_dir
echo "cp -r $dist_dir /data/face-web/www/web/finance/$web_dir"
cp -r $dist_dir /data/face-web/www/web/finance/$web_dir
echo "cd $org_dir"
cd $org_dir