Last change
on this file since 955 was
955,
checked in by maronga, 13 years ago
|
modified release_tutorial script
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
1.7 KB
|
Rev | Line | |
---|
[915] | 1 | #!/bin/ksh |
---|
| 2 | #------------------------------------------------------------------------------! |
---|
| 3 | # Current revisions: |
---|
| 4 | # ----------------- |
---|
[955] | 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 | # |
---|
[915] | 9 | # Former revisions: |
---|
| 10 | # ----------------- |
---|
| 11 | # $Id: release_tutorial 955 2012-07-20 09:54:04Z maronga $ |
---|
| 12 | # |
---|
[947] | 13 | # 946 2012-07-17 16:02:40Z maronga |
---|
| 14 | # Typo removed |
---|
| 15 | # |
---|
[916] | 16 | # 915 2012-05-30 15:11:11Z maronga |
---|
| 17 | # Initial revision |
---|
| 18 | # |
---|
[915] | 19 | # Description: |
---|
| 20 | # ------------ |
---|
| 21 | # Script for copying the compiled PDFs to a desired web directory. This script |
---|
| 22 | # should be used by user raasch only. |
---|
| 23 | # |
---|
| 24 | # Execution: |
---|
| 25 | # ---------- |
---|
[955] | 26 | # release_tutorial --> Copy all PDF files to $release_directory on |
---|
| 27 | # the trac server (see below) |
---|
[915] | 28 | #------------------------------------------------------------------------------! |
---|
| 29 | |
---|
[955] | 30 | release_directory="/palmdata/trac/htdocs/tutorial" |
---|
| 31 | server="palm" |
---|
| 32 | mod_lecture="664" |
---|
| 33 | mod_handout="664" |
---|
| 34 | mod_web="664" |
---|
[915] | 35 | |
---|
| 36 | full_name=`readlink -f $0` |
---|
| 37 | directory="$(dirname $full_name)/../TUTORIAL/SOURCE" |
---|
| 38 | input_dir="$(dirname $full_name)/../TUTORIAL" |
---|
| 39 | cd $input_dir |
---|
| 40 | |
---|
| 41 | printf "\n Files will be released in $release_directory/." |
---|
| 42 | printf "\n Start copying...\n" |
---|
| 43 | |
---|
[955] | 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/" |
---|
[915] | 48 | |
---|
[955] | 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/*" |
---|
[915] | 51 | |
---|
| 52 | printf " \n +++ All actions finished.\n" |
---|
| 53 | |
---|
| 54 | exit |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.