source: palm/trunk/SCRIPTS/release_tutorial @ 1766

Last change on this file since 1766 was 1310, checked in by raasch, 11 years ago

update of GPL copyright

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.6 KB
RevLine 
[915]1#!/bin/ksh
[1046]2#--------------------------------------------------------------------------------#
3# This file is part of PALM.
4#
5# PALM is free software: you can redistribute it and/or modify it under the terms
6# of the GNU General Public License as published by the Free Software Foundation,
7# either version 3 of the License, or (at your option) any later version.
8#
9# PALM is distributed in the hope that it will be useful, but WITHOUT ANY
10# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License along with
14# PALM. If not, see <http://www.gnu.org/licenses/>.
15#
[1310]16# Copyright 1997-2014  Leibniz Universitaet Hannover
[1046]17#--------------------------------------------------------------------------------#
18#
[915]19# Current revisions:
20# -----------------
[955]21#
[915]22# Former revisions:
23# -----------------
24# $Id: release_tutorial 1310 2014-03-14 08:01:56Z raasch $
25#
[1047]26# 1046 2012-11-09 14:38:45Z maronga
27# code put under GPL (PALM 3.9)
28#
[982]29# 981 2012-08-09 14:57:44Z maronga
30# Typo removed
31#
[956]32# 955 2012-07-20 09:54:04Z maronga
33# The pdf files are now directly transfered to the trac system. A user account
34# on the palm server is required. Without ssh-key, the passwort has to be given
35# four times.
36#
[947]37# 946 2012-07-17 16:02:40Z maronga
38# Typo removed
39#
[916]40# 915 2012-05-30 15:11:11Z maronga
41# Initial revision
42#
[915]43# Description:
44# ------------
45# Script for copying the compiled PDFs to a desired web directory. This script
46# should be used by user raasch only.
47#
48# Execution:
49# ----------
[955]50# release_tutorial --> Copy all PDF files to $release_directory on
51# the trac server (see below)
[915]52#------------------------------------------------------------------------------!
53
[955]54    release_directory="/palmdata/trac/htdocs/tutorial"
55    server="palm"
56    mod_lecture="664"
57    mod_handout="664"
58    mod_web="664"
[915]59
60    full_name=`readlink -f $0`
61    directory="$(dirname $full_name)/../TUTORIAL/SOURCE"
62    input_dir="$(dirname $full_name)/../TUTORIAL"
63    cd $input_dir
64
65    printf "\n Files will be released in $release_directory/."
66    printf "\n Start copying...\n"
67
[955]68#   copy files to trac system
69    scp LECTURE/*.pdf $USER@$server:"$release_directory/LECTURE/"
70    scp HANDOUT/*.pdf $USER@$server:"$release_directory/HANDOUT/"
71    scp WEB/*.pdf $USER@$server:"$release_directory/WEB/"
[915]72
[955]73#   change permissions
74    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]75
[981]76    printf " \n *** All actions finished.\n"
[915]77
78exit
79
80
81
Note: See TracBrowser for help on using the repository browser.