File: distribute

package info (click to toggle)
gcl 2.6.14-21
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 60,864 kB
  • sloc: ansic: 177,407; lisp: 151,509; asm: 128,169; sh: 22,510; cpp: 11,923; tcl: 3,181; perl: 2,930; makefile: 2,360; sed: 334; yacc: 226; lex: 95; awk: 30; fortran: 24; csh: 23
file content (67 lines) | stat: -rwxr-xr-x 1,464 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/sh
GCL=`pwd`
FTPDIR=math.utexas.edu:/home/ftp/pub/gcl

# done moving aside the .c files we don't want to ship.

OPT=-9

DNAME="gcl-`cat ${GCL}/majvers`.`cat ${GCL}/minvers`"
NAME="${DNAME}.tgz"
if [ $# -eq 1 ] ; then FILE=$1 ;
OPT=
else
FILE=/tmp/${NAME}
rcp ${GCL}/ChangeLog ${FTPDIR}/gcl-ChangeLog
rcp ${GCL}/README ${FTPDIR}/GCL.README
fi
moved=0 
nameNow=`basename ${GCL}`
cd ${GCL}/..
if [ "${DNAME}" != "${nameNow}" ] ;
 then 
   rm -f ${DNAME}
  if [ -d ${DNAME} ] ;then
     moved=1 
  mv -f ${DNAME} prev-${DNAME};
  fi
  echo mv -f ${GCL} ${DNAME}
  mv -f ${GCL} ${DNAME}
fi
tar cvf - `${DNAME}/xbin/new-files ${DNAME} ${DNAME}` | (cd ${DNAME} ; gzip -c ${OPT} > ${FILE} )

if [ "${DNAME}" != "${nameNow}" ] ; then
if [ "${moved}" = "1" ]  ; then
  echo   mv ${DNAME} ${GCL}
  mv -f prev-${DNAME}  ${DNAME}
fi
mv -f ${DNAME} ${GCL}
fi


if  [ $# -eq 0 ] ; then
rcp ${FILE} ${FTPDIR}/${NAME}
fi
if [ $# -eq 0 ] ; then
   echo wfs > tmpx
   echo binary >> tmpx
   echo send ${FILE} /cli/ftp/pub/gcl/${NAME} >> tmpx
   echo send README /cli/ftp/pub/gcl/GCL.README >> tmpx
   echo send ChangeLog /cli/ftp/pub/gcl/ChangeLog >> tmpx	
   cat tmpx | ftp ftp.cli.com
   rm -f tmpx 	

echo binary >tmpx
echo cd kcl/akcl >> tmpx
echo prompt >> tmpx
# echo 'mdel akcl-1*.Z gcl-*' >> tmpx
echo send ${FILE} ${NAME} >> tmpx
echo send README GCL.README >> tmpx
echo send ChangeLog ChangeLog >> tmpx
echo quit >> tmpx
cat tmpx | ftp 133.11.11.11
fi

rm -f tmpx