forked from areaDetector/areaDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeADPrebuilt
executable file
·112 lines (107 loc) · 2.88 KB
/
makeADPrebuilt
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/bin/bash
# This script takes 3 parameters.
# 1 - The name of the detector (ADProsilica, etc.)
# 2 - The version number (R2-0, etc.)
# 3 - The EPICS architecture (linux-x86_64, etc.)
echo "Parameter 1 = " $1
echo "Parameter 2 = " $2
echo "Parameter 3 = " $3
find . -name 'auto_settings.sav_*' -exec rm -fv {} \;
find . -name 'auto_settings.savB*' -exec rm -fv {} \;
find . -name 'core.*' -exec rm -fv {} \;
find . -name '*.exe.*' -exec rm -fv {} \;
AREA_DETECTOR=areaDetector-2-3
ASYN=asyn-4-26
AUTOSAVE=autosave-5-6-2
BUSY=busy-1-6-1
CALC=calc-3-4-2-1
DEVIOCSTATS=devIocStats-3-1-14
SSCAN=sscan-2-10-1
BASE_TOP=/usr/local/epics
BASE=base-3.14.12.5
SUPPORT=/home/epics/devel
# NOTE: This cd is needed so that wildcards work, even though the tar command has --directory
cd ..
tar cvzf /home/epics/public_html/pub/$1/$1_Prebuilt_$2_$3.tgz \
--ignore-failed-read \
--exclude '.svn*' \
--exclude 'O.*' \
--directory $BASE_TOP \
$BASE/bin/$3 \
--directory $SUPPORT \
$AREA_DETECTOR/ADCore/db \
$AREA_DETECTOR/ADCore/documentation \
$AREA_DETECTOR/ADCore/ADApp/Db \
$AREA_DETECTOR/ADCore/ADApp/op \
$AREA_DETECTOR/ADCore/Viewers/ImageJ \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADBinaries/bin/$3 \
$AREA_DETECTOR/ADExample/iocBoot \
$AREA_DETECTOR/$1/db \
$AREA_DETECTOR/$1/bin/$3 \
$AREA_DETECTOR/$1/*/Db \
$AREA_DETECTOR/$1/*/op \
$AREA_DETECTOR/$1/documentation \
$AREA_DETECTOR/$1/iocs/*IOC/bin/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/dbd \
$AREA_DETECTOR/$1/iocs/*IOC/iocBoot \
$ASYN/opi \
$ASYN/db \
$ASYN/bin/$3 \
$AUTOSAVE/asApp/Db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$BUSY/busyApp/Db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$CALC/calcApp/Db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$SSCAN/sscanApp/Db \
$SSCAN/sscanApp/op \
$SSCAN/bin/$3
rm -f /home/epics/public_html/pub/$1/$1_Prebuilt_$2_$3.zip
cd $BASE_TOP
zip -r /home/epics/public_html/pub/$1/$1_Prebuilt_$2_$3.zip \
$BASE/bin/$3
cd $SUPPORT
zip -r --grow /home/epics/public_html/pub/$1/$1_Prebuilt_$2_$3.zip \
$AREA_DETECTOR/ADCore/db \
$AREA_DETECTOR/ADCore/documentation \
$AREA_DETECTOR/ADCore/ADApp/Db \
$AREA_DETECTOR/ADCore/ADApp/op \
$AREA_DETECTOR/ADCore/iocBoot \
$AREA_DETECTOR/ADCore/Viewers/ImageJ \
$AREA_DETECTOR/ADCore/bin/$3 \
$AREA_DETECTOR/ADBinaries/bin/$3 \
$AREA_DETECTOR/ADExample/iocBoot \
$AREA_DETECTOR/$1/db \
$AREA_DETECTOR/$1/bin/$3 \
$AREA_DETECTOR/$1/*/Db \
$AREA_DETECTOR/$1/*/op \
$AREA_DETECTOR/$1/documentation \
$AREA_DETECTOR/$1/iocs/*IOC/bin/$3 \
$AREA_DETECTOR/$1/iocs/*IOC/dbd \
$AREA_DETECTOR/$1/iocs/*IOC/iocBoot \
$ASYN/opi \
$ASYN/db \
$ASYN/bin/$3 \
$AUTOSAVE/asApp/Db \
$AUTOSAVE/asApp/op \
$AUTOSAVE/bin/$3 \
$BUSY/busyApp/Db \
$BUSY/busyApp/op \
$BUSY/bin/$3 \
$CALC/calcApp/Db \
$CALC/calcApp/op \
$CALC/bin/$3 \
$DEVIOCSTATS/db \
$DEVIOCSTATS/op/adl \
$DEVIOCSTATS/bin/$3 \
$SSCAN/sscanApp/Db \
$SSCAN/sscanApp/op \
$SSCAN/bin/$3 \
--exclude '*.svn*' --exclude '*/O.*'