#!/bin/ksh #------------------------------------------------------------------------------! # Current revisions: # ----------------- # # Former revisions: # ----------------- # $Id: release_tutorial 956 2012-07-20 09:57:07Z raasch $ # # 955 2012-07-20 09:54:04Z maronga # The pdf files are now directly transfered to the trac system. A user account # on the palm server is required. Without ssh-key, the passwort has to be given # four times. # # 946 2012-07-17 16:02:40Z maronga # Typo removed # # 915 2012-05-30 15:11:11Z maronga # Initial revision # # Description: # ------------ # Script for copying the compiled PDFs to a desired web directory. This script # should be used by user raasch only. # # Execution: # ---------- # release_tutorial --> Copy all PDF files to $release_directory on # the trac server (see below) #------------------------------------------------------------------------------! release_directory="/palmdata/trac/htdocs/tutorial" server="palm" mod_lecture="664" mod_handout="664" mod_web="664" full_name=`readlink -f $0` directory="$(dirname $full_name)/../TUTORIAL/SOURCE" input_dir="$(dirname $full_name)/../TUTORIAL" cd $input_dir printf "\n Files will be released in $release_directory/." printf "\n Start copying...\n" # copy files to trac system scp LECTURE/*.pdf $USER@$server:"$release_directory/LECTURE/" scp HANDOUT/*.pdf $USER@$server:"$release_directory/HANDOUT/" scp WEB/*.pdf $USER@$server:"$release_directory/WEB/" # change permissions 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/*" printf " \n +++ All actions finished.\n" exit