Debian Codegraph @

wtools/MAKE_ACEMBLY

raw
1 #!/bin/csh
2 #
3 # script to make distribution tar files - edit as needed each time.
4 #
5 # $Id: MAKE_ACEMBLY,v 1.3 1998/11/18 17:46:19 mieg Exp $
6
7 if ($1 == "") then
8 echo usage MAKE_ACEMBLY version
9 echo example MAKE_ACEMBLY 4_2
10 exit 1
11 endif
12
13 setenv vv $1
14
15 echo 'I will prepare the distribution in ~/distrib.acembly'
16 # test exitence
17 if !(-d ~/distrib.acembly) then
18 echo 'No directory ~/distrib.acembly, i quit'
19 exit 1
20 endif
21
22 if !($?ACEMBLY) then
23 echo ACEMBLY not set, i quit
24 exit 1
25 endif
26
27 if !(-d $ACEMBLY) then
28 echo $ACEMBLY does not exist, i quit
29 exit 1
30 endif
31
32
33 cd $ACEMBLY
34 cp USAGE ~/distrib.acembly
35 cd ..
36 if !(-d ACEMBLY) then
37 echo ACEMBLY does not exist in $ACEMBLY/.. i quit
38 exit 1
39 endif
40
41 mv ACEMBLY/seqmgr .
42 tar cf ~/distrib.acembly/tar1 ACEMBLY
43 mv seqmgr ACEMBLY
44
45 echo fix the ACEMBLY directory
46
47 cd ~/distrib.acembly
48 if (-d toto) \rm -rf toto
49 mkdir toto
50 cd toto
51 tar xf ../tar1
52 cd ACEMBLY
53 \rm *~
54 \rm -rf bin*
55 mkdir seqmgr
56 mkdir seqmgr/archive
57 gunzip *.ace
58 cd ..
59 tar cf ../ACEMBLY.$vv.tar ACEMBLY
60 cd ..
61 gzip ACEMBLY.$vv.tar
62 \rm -rf toto tar1
63
64 cd $ACEDB_SRC
65 tar chf ~/distrib.acembly/source.$vv.tar w*
66 cd ~/distrib.acembly
67 gzip source.$vv.tar
68
69 cd $ACEDB_SRC/wtools
70 cp README.acembly ~/distrib.acembly
71 cp INSTALL.acembly ~/distrib.acembly
72 chmod 755 INSTALL.acembly
73
74
75
76