File: mkathena

package info (click to toggle)
horae 063-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 23,964 kB
  • ctags: 4,939
  • sloc: perl: 101,791; ansic: 6,700; xml: 2,019; lisp: 744; sh: 81; makefile: 76
file content (45 lines) | stat: -rwxr-xr-x 990 bytes parent folder | download
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
#!/bin/sh

# Build a test copy of athena from its parts

# Bruce uses this during development, it is not normally needed
# because the Makefile.PL performs the same chore as this script

files='top head main_window draw_properties set_properties file group_ops
align pixel calibrate deglitch truncate sa_fluo diff lograt peakfit lcf rebin
smooth convolve demo macro palettes plot plotstyles project report rc setup
mru prefs registry keys teach_ft misc'


## parse the command line argument
devel=0
if [ -z $1 ]; then
    devel=0
elif [ $1 == 'devel' ]; then
    devel=1
else
    devel=0
fi


echo
if [ $devel -eq 1 ]; then
    echo "Making a development copy of ATHENA (minerva_parts/)..."
else
    echo "Making a stable copy of ATHENA (athena_parts/)..."
fi
echo

rm -f test.pl
for f in $files; do
    echo -n $f " "
    if [ $devel -eq 1 ]; then
	cat minerva_parts/$f.pl >> test.pl
    else
	cat athena_parts/$f.pl >> test.pl
    fi
done
echo
echo
echo "Wrote test.pl";
chmod +x test.pl