Changeset 955 for palm/trunk/SCRIPTS/release_tutorial
- Timestamp:
- Jul 20, 2012 9:54:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/release_tutorial
r947 r955 3 3 # Current revisions: 4 4 # ----------------- 5 # 5 # The pdf files are now directly transfered to the trac system. A user account 6 # on the palm server is required. Without ssh-key, the passwort has to be given 7 # four times. 8 # 6 9 # Former revisions: 7 10 # ----------------- … … 21 24 # Execution: 22 25 # ---------- 23 # release_tutorial --> Copy all PDF files to $release_directory (see below) 26 # release_tutorial --> Copy all PDF files to $release_directory on 27 # the trac server (see below) 24 28 #------------------------------------------------------------------------------! 25 29 26 release_directory="/home/raasch/public_html/files" 27 mod_dir_lecture="755" 28 mod_dir_handout="755" 29 mod_dir_web="755" 30 mod_lecture="644" 31 mod_handout="644" 32 mod_web="644" 30 release_directory="/palmdata/trac/htdocs/tutorial" 31 server="palm" 32 mod_lecture="664" 33 mod_handout="664" 34 mod_web="664" 33 35 34 36 full_name=`readlink -f $0` … … 38 40 39 41 printf "\n Files will be released in $release_directory/." 40 printf "\n Subdirectories LECTURE, HANDOUT and WEB will be creared if necessary."41 42 printf "\n Start copying...\n" 42 43 44 # copy files to trac system 45 scp LECTURE/*.pdf $USER@$server:"$release_directory/LECTURE/" 46 scp HANDOUT/*.pdf $USER@$server:"$release_directory/HANDOUT/" 47 scp WEB/*.pdf $USER@$server:"$release_directory/WEB/" 43 48 44 if [[ ! -d $release_directory/LECTURE ]] then 45 printf " $release_directory/LECTURE will be created.\n" 46 mkdir -p $release_directory/LECTURE 47 chmod $mod_dir_lecture $release_directory/LECTURE 48 fi 49 cp LECTURE/*.pdf "$release_directory/LECTURE/" 50 chmod $mod_lecture $release_directory/LECTURE/* 51 printf " Finished LECTURE.\n" 52 53 if [[ ! -d $release_directory/HANDOUT ]] then 54 printf " $release_directory/HANDOUT will be created.\n" 55 mkdir -p $release_directory/HANDOUT 56 chmod $mod_dir_handout $release_directory/HANDOUT 57 58 fi 59 cp HANDOUT/*.pdf "$release_directory/HANDOUT/" 60 chmod $mod_handout $release_directory/HANDOUT/* 61 printf " Finished HANDOUT.\n" 62 63 if [[ ! -d $release_directory/WEB ]] then 64 printf " $release_directory/WEB will be created.\n" 65 mkdir -p $release_directory/WEB 66 chmod $mod_dir_web $release_directory/WEB 67 fi 68 cp WEB/*.pdf "$release_directory/WEB/" 69 chmod $mod_web $release_directory/WEB/* 70 printf " Finished WEB.\n" 49 # change permissions 50 ssh $server -l $USER "cd $release_directory/LECTURE; chmod $mod_lecture $release_directory/LECTURE/*; chmod $mod_handout $release_directory/HANDOUT/*; chmod $mod_web $release_directory/WEB/*" 71 51 72 52 printf " \n +++ All actions finished.\n"
Note: See TracChangeset
for help on using the changeset viewer.