source: palm/trunk/SCRIPTS/release_tutorial @ 1037

Last change on this file since 1037 was 982, checked in by maronga, 12 years ago

last commit documented

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1#!/bin/ksh
2#------------------------------------------------------------------------------!
3# Current revisions:
4# -----------------
5#
6# Former revisions:
7# -----------------
8# $Id: release_tutorial 982 2012-08-09 15:01:57Z raasch $
9#
10# 981 2012-08-09 14:57:44Z maronga
11# Typo removed
12#
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#
18# 946 2012-07-17 16:02:40Z maronga
19# Typo removed
20#
21# 915 2012-05-30 15:11:11Z maronga
22# Initial revision
23#
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# ----------
31# release_tutorial --> Copy all PDF files to $release_directory on
32# the trac server (see below)
33#------------------------------------------------------------------------------!
34
35    release_directory="/palmdata/trac/htdocs/tutorial"
36    server="palm"
37    mod_lecture="664"
38    mod_handout="664"
39    mod_web="664"
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
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/"
53
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/*"
56
57    printf " \n *** All actions finished.\n"
58
59exit
60
61
62
Note: See TracBrowser for help on using the repository browser.