diff options
| author | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2013-07-02 05:44:46 +0000 |
| commit | a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.0/tools/makebkp.sh | |
| parent | 94caebadeb66ad7b453d4258a796979cafb758b0 (diff) | |
| download | boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip | |
restructuring of boca's git
Diffstat (limited to 'boca-1.5.0/tools/makebkp.sh')
| -rwxr-xr-x | boca-1.5.0/tools/makebkp.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/boca-1.5.0/tools/makebkp.sh b/boca-1.5.0/tools/makebkp.sh deleted file mode 100755 index 5a99c8a..0000000 --- a/boca-1.5.0/tools/makebkp.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -for i in zip du find cut; do - p=`which $i` - if [ -x "$p" ]; then - echo -n "" - else - echo "$i" not found - exit 1 - fi -done - -ex=`which singlefilebkp.sh` -if [ "$ex" = "" ]; then - ex=/var/www/boca/tools/singlefilebkp.sh -fi - -if [ -x "$ex" ]; then - zip /tmp/bkp.zip `find $cdir -name "*.c"` `find $cdir -name "*.java"` `find $cdir -name "*.cpp"` `find $cdir -name "*.in"` - if [ ! -f /tmp/bkp.zip ]; then - echo "Nothing to backup" - else - size=`du -s /tmp/bkp.zip | cut -f1` - if [ "$size" -gt 100000 ]; then - echo Bkp is already too large. BACKUP ABORTED - else - $ex /tmp/bkp.zip - fi - fi -else - echo Bkp script not found or is not executable -fi |