forked from McStasMcXtrace/McCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_debs_mcstas
executable file
·37 lines (32 loc) · 1.5 KB
/
build_debs_mcstas
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
#!/bin/sh
if [ "x$1" = "x" ]; then
# No arguments
echo Please provide one argument,e.g : $0 2.0
exit 1;
fi
# From 2.1 onwards, let McStas reside in /usr/share on Debian-like systems
export MCINSTALL_PREFIX=/usr/share/
# 64-bit
./mkdist mcstas $1 "" "" linux64 "" -- deb
./mkdist mcstas-comps $1 "" "" linux64 "" -- deb
./mkdist mcstas-tools-perl $1 tools/Legacy-Perl/ "" linux64 "" -- deb
./mkdist mcstas-tools-perl-cmdline $1 tools/Legacy-Perl-cmdline/ "" linux64 "" -- deb
./mkdist mcstas-tools-matlab-mcplot $1 tools/matlab/mcplot/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcplot-pyqtgraph $1 tools/Python/mcplot/pyqtgraph/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcrun $1 tools/Python/mcrun/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcgui $1 tools/Python/mcgui/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mccodelib $1 tools/Python/mccodelib/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcdisplay-webgl $1 tools/Python/mcdisplay/webgl/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcdisplay-pyqtgraph $1 tools/Python/mcdisplay/pyqtgraph/ "" linux64 "" -- deb
./mkdist mcstas-tools-python-mcdisplay-mantid $1 tools/Python/mcdisplay/mantid_xml/ "" linux64 "" -- deb
./mkdist mcstas-manuals $1 docpkg/manuals/mcstas/ "" linux64 "" -- deb
#build metapackages?
if [ "x$2" != "x" ]; then
cd meta-pkgs/deb
for controlfile in `ls control.mcstas*`
do
sed -i.bak s/@VERSION@/${1}/g $controlfile
equivs-build $controlfile
mv $controlfile.bak $controlfile
done
fi