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