source: palm/trunk/SCRIPTS/release_tutorial @ 915

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

added first LaTeX source code for the new tutorial

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1#!/bin/ksh
2#------------------------------------------------------------------------------!
3# Current revisions:
4# -----------------
5# Initial revision
6#
7# Former revisions:
8# -----------------
9# $Id: release_tutorial 915 2012-05-30 15:11:11Z maronga $
10#
11# Description:
12# ------------
13# Script for copying the compiled PDFs to a desired web directory. This script
14# should be used by user raasch only.
15#
16# Execution:
17# ----------
18# release_tutorial --> Copy all PDF files to $release_directory (see below)
19#------------------------------------------------------------------------------!
20
21    release_directory="/home/raasc/public_html/files"
22    mod_dir_lecture="755"
23    mod_dir_handout="755"
24    mod_dir_web="755"
25    mod_lecture="644"
26    mod_handout="644"
27    mod_web="644"
28
29    full_name=`readlink -f $0`
30    directory="$(dirname $full_name)/../TUTORIAL/SOURCE"
31    input_dir="$(dirname $full_name)/../TUTORIAL"
32    cd $input_dir
33
34    printf "\n Files will be released in $release_directory/."
35    printf "\n Subdirectories LECTURE, HANDOUT and WEB will be creared if necessary."
36    printf "\n Start copying...\n"
37
38
39    if [[ ! -d $release_directory/LECTURE ]] then
40       printf " $release_directory/LECTURE will be created.\n"
41       mkdir -p $release_directory/LECTURE
42       chmod $mod_dir_lecture $release_directory/LECTURE
43    fi
44    cp LECTURE/*.pdf "$release_directory/LECTURE/"
45    chmod $mod_lecture $release_directory/LECTURE/*
46    printf " Finished LECTURE.\n"
47
48    if [[ ! -d $release_directory/HANDOUT ]] then
49       printf " $release_directory/HANDOUT will be created.\n"
50       mkdir -p $release_directory/HANDOUT
51       chmod $mod_dir_handout $release_directory/HANDOUT
52
53    fi
54    cp HANDOUT/*.pdf "$release_directory/HANDOUT/"
55    chmod $mod_handout $release_directory/HANDOUT/*
56    printf " Finished HANDOUT.\n"
57
58    if [[ ! -d $release_directory/WEB ]] then
59       printf " $release_directory/WEB will be created.\n"
60       mkdir -p $release_directory/WEB
61       chmod $mod_dir_web $release_directory/WEB
62    fi
63    cp WEB/*.pdf "$release_directory/WEB/"
64    chmod $mod_web $release_directory/WEB/*
65    printf " Finished WEB.\n"
66
67    printf " \n +++ All actions finished.\n"
68
69exit
70
71
72
Note: See TracBrowser for help on using the repository browser.