source: SH_SHM/trunk/util/ftp_request_update.csh @ 92

Revision 16, 1.1 KB checked in by marcus, 15 years ago (diff)

r1 | svn | 2007-12-13 11:10:29 +0100 (Do, 13 Dez 2007) | 2 lines

Initial import

  • Property svn:executable set to *
Line 
1#! /bin/csh
2#
3# file ftp_request_update.csh
4#      ======================
5#
6# version 2, 27-Dec-96
7#
8# Requests update of SH/SHM source via ftp.  Creates version list
9# and ftp's it to to SZGRF ftp server.  To make this script work you
10# need to add the following lines into your $HOME/.netrc file:
11#
12#   machine ersn06.szgrf.uni-erlangen.de
13#   login ftp
14#   password <your-email-addr>
15#
16# If the file $HOME/.netrc does not exist, create it AND set the mode
17# with 'chmod 600 $HOME/.netrc'.
18#
19# The first parameter <sh-root> is the absolute path of your sh root,
20# the second parameter is the version filename WITHOUT path.  It will always
21# be created on $SH_ROOT.
22#
23# K. Stammler, 23-Aug-96
24
25if  ("$2" == "")  then
26        echo "Usage: $0 <sh-root> <vrs-file>"
27        exit
28endif
29
30# set constants
31set szgrf=ftp.szgrf.uni-erlangen.de
32set szgrf_path=/pub/sh_updates
33
34# get parameters from command line
35set shroot=$1
36set vrsfile=$2
37set shstartup=$shroot/setup/shsetup
38
39source $shstartup
40
41chdir $SH_ROOT
42
43# create version list
44if  (-e $vrsfile)  \rm $vrsfile
45$SH_UTIL/vrs_list.csh $shroot >$vrsfile
46
47# export it to the SZGRF
48$SH_UTIL/autoftp.csh put $szgrf $szgrf_path $vrsfile
Note: See TracBrowser for help on using the repository browser.