[915] | 1 | #!/bin/ksh |
---|
| 2 | #------------------------------------------------------------------------------! |
---|
| 3 | # Current revisions: |
---|
| 4 | # ----------------- |
---|
[955] | 5 | # |
---|
[915] | 6 | # Former revisions: |
---|
| 7 | # ----------------- |
---|
| 8 | # $Id: release_tutorial 982 2012-08-09 15:01:57Z maronga $ |
---|
| 9 | # |
---|
[982] | 10 | # 981 2012-08-09 14:57:44Z maronga |
---|
| 11 | # Typo removed |
---|
| 12 | # |
---|
[956] | 13 | # 955 2012-07-20 09:54:04Z maronga |
---|
| 14 | # The pdf files are now directly transfered to the trac system. A user account |
---|
| 15 | # on the palm server is required. Without ssh-key, the passwort has to be given |
---|
| 16 | # four times. |
---|
| 17 | # |
---|
[947] | 18 | # 946 2012-07-17 16:02:40Z maronga |
---|
| 19 | # Typo removed |
---|
| 20 | # |
---|
[916] | 21 | # 915 2012-05-30 15:11:11Z maronga |
---|
| 22 | # Initial revision |
---|
| 23 | # |
---|
[915] | 24 | # Description: |
---|
| 25 | # ------------ |
---|
| 26 | # Script for copying the compiled PDFs to a desired web directory. This script |
---|
| 27 | # should be used by user raasch only. |
---|
| 28 | # |
---|
| 29 | # Execution: |
---|
| 30 | # ---------- |
---|
[955] | 31 | # release_tutorial --> Copy all PDF files to $release_directory on |
---|
| 32 | # the trac server (see below) |
---|
[915] | 33 | #------------------------------------------------------------------------------! |
---|
| 34 | |
---|
[955] | 35 | release_directory="/palmdata/trac/htdocs/tutorial" |
---|
| 36 | server="palm" |
---|
| 37 | mod_lecture="664" |
---|
| 38 | mod_handout="664" |
---|
| 39 | mod_web="664" |
---|
[915] | 40 | |
---|
| 41 | full_name=`readlink -f $0` |
---|
| 42 | directory="$(dirname $full_name)/../TUTORIAL/SOURCE" |
---|
| 43 | input_dir="$(dirname $full_name)/../TUTORIAL" |
---|
| 44 | cd $input_dir |
---|
| 45 | |
---|
| 46 | printf "\n Files will be released in $release_directory/." |
---|
| 47 | printf "\n Start copying...\n" |
---|
| 48 | |
---|
[955] | 49 | # copy files to trac system |
---|
| 50 | scp LECTURE/*.pdf $USER@$server:"$release_directory/LECTURE/" |
---|
| 51 | scp HANDOUT/*.pdf $USER@$server:"$release_directory/HANDOUT/" |
---|
| 52 | scp WEB/*.pdf $USER@$server:"$release_directory/WEB/" |
---|
[915] | 53 | |
---|
[955] | 54 | # change permissions |
---|
| 55 | 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/*" |
---|
[915] | 56 | |
---|
[981] | 57 | printf " \n *** All actions finished.\n" |
---|
[915] | 58 | |
---|
| 59 | exit |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|