mkuploadcommands.svn-base
上传用户:market2
上传日期:2018-11-18
资源大小:18786k
文件大小:1k
源码类别:
外挂编程
开发平台:
Windows_Unix
- #!/bin/bash
- # This script creates an upload script for sftp.
- cd srcdoc
- echo progress
- echo cd /home/groups/o/op/openkore/htdocs/srcdoc
- echo lcd srcdoc
- examineFolder() {
- if [[ "$1" != "" ]]; then
- pushd "$1" &>/dev/null
- echo -mkdir "$1"
- echo "cd $1"
- echo "lcd $1"
- fi
- # Upload files
- for F in *.html *.css *.png *.js *.php *.txt; do
- [[ -f "$F" ]] && echo "put $F"
- done
- # Process subfolders
- for D in *; do
- [[ -d "$D" && "$D" != "CVS" ]] && examineFolder "$D"
- done
- if [[ "$1" != "" ]]; then
- popd &>/dev/null
- echo cd ..
- echo lcd ..
- fi
- }
- examineFolder
- echo bye