source: palm/trunk/SCRIPTS/release_tutorial @ 963

Last change on this file since 963 was 956, checked in by maronga, 12 years ago

last commits documented

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