source: palm/trunk/SCRIPTS/release_tutorial @ 981

Last change on this file since 981 was 981, checked in by maronga, 9 years ago

removed typos, update in img2video, added new tool img2stereo

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