Changeset 1164 for dasscm/trunk/usr/bin/dasscm_remote_update.sh
- Timestamp:
- Nov 13, 2013, 12:13:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dasscm/trunk/usr/bin/dasscm_remote_update.sh
r1163 r1164 8 8 # are updated to the current content. 9 9 # Use only, if a local dasscm installation is not possbile! 10 11 DIR="$1" 10 12 11 13 set -o errexit -o nounset … … 23 25 REMOTE_USER=${DASSCM_REMOTE_USER:-"root"} 24 26 25 SERVER=$1 26 27 if [ -z "$SERVER" ]; then 27 if [ -z "$DIR" ]; then 28 28 usage 29 29 fi 30 30 31 if [ ! -d "$ SERVER" ]; then31 if [ ! -d "$DIR" ]; then 32 32 echo 33 echo " failed to access directory $ SERVER"33 echo " failed to access directory $DIR" 34 34 usage 35 35 fi … … 39 39 # If you want to add more files, 40 40 # create the file in the repository and re-run this script 41 cd $ SERVER42 svn up || (echo "failed to update repository $ SERVER"; usage)41 cd $DIR 42 svn up || (echo "failed to update repository $DIR"; usage) 43 43 FILELIST=`mktemp` 44 find > $FILELIST 44 svn ls -R > $FILELIST 45 SERVER=`basename "$PWD"` 45 46 rsync -av --existing --files-from $FILELIST $OPTIONS $REMOTE_USER@$SERVER:/. . || (echo "FAILED to transfer dasscm files. Failed to access server $SERVER via ssh/rsync?"; usage) 46 47 rm $FILELIST
Note:
See TracChangeset
for help on using the changeset viewer.