forked from McStasMcXtrace/McCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_rpms_mcxtrace
executable file
·42 lines (38 loc) · 1.91 KB
/
build_rpms_mcxtrace
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
#!/bin/sh
if [ "x$1" = "x" ]; then
# No arguments
echo Please provide one argument,e.g : $0 2.0
exit 1;
fi
# 64-bit
./mkdist mcxtrace $1 "" "" linux64 "" -- rpm
./mkdist mcxtrace-comps $1 "" "" linux64 "" -- rpm
./mkdist mcxtrace-tools-perl $1 tools/Legacy-Perl/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxplot-chaco $1 tools/Python/mcplot/chaco/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxplot-matplotlib $1 tools/Python/mcplot/matplotlib/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-matlab-mxplot $1 tools/matlab/mcplot/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxrun $1 tools/Python/mcrun/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxgui $1 tools/Python/mcgui/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxdisplay $1 tools/Python/mcdisplay/x3d/ "" linux64 "" -- rpm
./mkdist mcxtrace-manuals $1 doc/manuals/mcxtrace/ "" linux64 "o" -- rpm
# 32-bit
./mkdist mcxtrace $1 "" "" linux32 "" -- rpm
./mkdist mcxtrace-comps $1 "" "" linux32 "" -- rpm
./mkdist mcxtrace-tools-perl $1 tools/Legacy-Perl/ "" linux32 "" -- rpm
./mkdist mcxtrace-tools-python-mxplot-chaco $1 tools/Python/mcplot/chaco/ "" linux32 "" -- rpm
./mkdist mcxtrace-tools-python-mxplot-matplotlib $1 tools/Python/mcplot/matplotlib/ "" linux32 "" -- rpm
./mkdist mcxtrace-tools-matlab-mxplot $1 tools/matlab/mcplot/ "" linux64 "" -- rpm
./mkdist mcxtrace-tools-python-mxrun $1 tools/Python/mcrun/ "" linux32 "" -- rpm
./mkdist mcxtrace-tools-python-mxgui $1 tools/Python/mcgui/ "" linux32 "" -- rpm
./mkdist mcxtrace-tools-python-mxdisplay $1 tools/Python/mcdisplay/x3d/ "" linux32 "" -- rpm
./mkdist mcxtrace-manuals $1 doc/manuals/mcxtrace/ "" linux32 "o" -- rpm
#build metapackages?
if [ "x$2" != "x" ]; then
cd meta-pkgs/rpm
for controlfile in `ls mcxtrace-*.spec`
do
sed -i.bak s/@VERSION@/${1}/g $controlfile
rpmbuild -bb --target x86_64 $controlfile
mv $controlfile.bak $controlfile
done
fi