Commit e9fa9dde9394e3bce581f2267c34031f92b09578
1 parent
772f4d40
small fixes and cleanup
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@710 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
3 deletions
bin/remote_update.sh
| @@ -15,20 +15,24 @@ usage() { | @@ -15,20 +15,24 @@ usage() { | ||
| 15 | 15 | ||
| 16 | deploy() { | 16 | deploy() { |
| 17 | # cleanup | 17 | # cleanup |
| 18 | - rm -rf $tmp* 2> /dev/null | 18 | + rm -rf $tmp 2> /dev/null |
| 19 | mkdir $tmp | 19 | mkdir $tmp |
| 20 | 20 | ||
| 21 | # export owl | 21 | # export owl |
| 22 | cd $tmp | 22 | cd $tmp |
| 23 | - #cvs -d $cvsroot co -r $tag owl | ||
| 24 | - cvs -d $cvsroot co owl | 23 | + cvs -d $cvsroot co -r $tag owl |
| 25 | cd owl/Documents | 24 | cd owl/Documents |
| 26 | cvs update -d | 25 | cvs update -d |
| 26 | + | ||
| 27 | # remove CVS directories | 27 | # remove CVS directories |
| 28 | find $tmp -name CVS -exec rm -rf {} \; 2> /dev/null | 28 | find $tmp -name CVS -exec rm -rf {} \; 2> /dev/null |
| 29 | 29 | ||
| 30 | # tar it up | 30 | # tar it up |
| 31 | tar -czvf /tmp/owl.tgz $tmp | 31 | tar -czvf /tmp/owl.tgz $tmp |
| 32 | + | ||
| 33 | + # clean up | ||
| 34 | + rm -rf $tmp 2> /dev/null | ||
| 35 | + | ||
| 32 | # punt it over the wall | 36 | # punt it over the wall |
| 33 | scp /tmp/owl.tgz $host:/tmp/ | 37 | scp /tmp/owl.tgz $host:/tmp/ |
| 34 | 38 |