source: palm/trunk/SCRIPTS/release_tutorial @ 2429

Last change on this file since 2429 was 1842, checked in by raasch, 9 years ago

last commit documented

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1#!/bin/bash
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#
16# Copyright 1997-2014  Leibniz Universitaet Hannover
17#--------------------------------------------------------------------------------#
18#
19# Current revisions:
20# ------------------
21#
22#
23# Former revisions:
24# -----------------
25# $Id: release_tutorial 1842 2016-04-07 19:24:16Z gronemeier $
26#
27# 1841 2016-04-07 19:14:06Z raasch
28# script now running under bash
29#
30# 1046 2012-11-09 14:38:45Z maronga
31# code put under GPL (PALM 3.9)
32#
33# 981 2012-08-09 14:57:44Z maronga
34# Typo removed
35#
36# 955 2012-07-20 09:54:04Z maronga
37# The pdf files are now directly transfered to the trac system. A user account
38# on the palm server is required. Without ssh-key, the passwort has to be given
39# four times.
40#
41# 946 2012-07-17 16:02:40Z maronga
42# Typo removed
43#
44# 915 2012-05-30 15:11:11Z maronga
45# Initial revision
46#
47# Description:
48# ------------
49# Script for copying the compiled PDFs to a desired web directory. This script
50# should be used by user raasch only.
51#
52# Execution:
53# ----------
54# release_tutorial --> Copy all PDF files to $release_directory on
55# the trac server (see below)
56#------------------------------------------------------------------------------!
57
58    release_directory="/palmdata/trac/htdocs/tutorial"
59    server="palm"
60    mod_lecture="664"
61    mod_handout="664"
62    mod_web="664"
63
64    full_name=`readlink -f $0`
65    directory="$(dirname $full_name)/../TUTORIAL/SOURCE"
66    input_dir="$(dirname $full_name)/../TUTORIAL"
67    cd $input_dir
68
69    printf "\n Files will be released in $release_directory/."
70    printf "\n Start copying...\n"
71
72#   copy files to trac system
73    scp LECTURE/*.pdf $USER@$server:"$release_directory/LECTURE/"
74    scp HANDOUT/*.pdf $USER@$server:"$release_directory/HANDOUT/"
75    scp WEB/*.pdf $USER@$server:"$release_directory/WEB/"
76
77#   change permissions
78    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/*"
79
80    printf " \n *** All actions finished.\n"
81
82exit
83
84
85
Note: See TracBrowser for help on using the repository browser.