forked from McStasMcXtrace/McCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_windows_mcxtrace
executable file
·39 lines (32 loc) · 1.49 KB
/
build_windows_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
#!/bin/sh
PATH=$PATH:$PWD/tools/download-tool
if [ "x$1" = "x" ]; then
# No arguments
echo Please provide one argument,e.g : $0 2.0
exit 1;
fi
# Workaround for having CRLF linefeeds in a couple of windows packages
rsync -avz --delete --exclude=".svn/" mcxtrace-comps/ mcxtrace-comps-win
find mcxtrace-comps-win -type f -not -name \*.off -exec todos \{\} \;
rsync -avz --delete --exclude=".svn/" tools/Legacy-Perl/ tools/Legacy-Perl-win
find tools/Legacy-Perl-win -type f -exec todos \{\} \;
# 32-bit
./mkdist mcxtrace $1 "" "" mingw32 "" -- nsis
./mkdist mcxtrace-comps $1 "" "" mingw32 "" -- nsis
./mkdist mcxtrace-tools-perl $1 tools/Legacy-Perl/ "" mingw32 "" -- nsis
./mkdist mcxtrace-tools-python-mxplot-chaco $1 tools/Python/mcplot/chaco/ "" mingw32 "" -- nsis
./mkdist mcxtrace-tools-python-mxplot-matplotlib $1 tools/Python/mcplot/matplotlib/ "" mingw32 "" -- nsis
./mkdist mcxtrace-tools-python-mxrun $1 tools/Python/mcrun/ "" mingw32 "" -- nsis
./mkdist mcxtrace-tools-python-mxdisplay $1 tools/Python/mcdisplay/x3d/ "" mingw32 "" -- nsis
./mkdist mcxtrace-manuals $1 doc/manuals/mcxtrace/ "" mingw32 "o" -- nsis
if [ "x$2" != "x" ]; then
# Build the meta-packages also
cd meta-pkgs/windows/Support
if [ ! -f PPDs.zip ]; then
wget http://ppds.mccode.org/PPDs.zip
fi
cd ..
sed s/@VERSION@/${1}/g McXtrace-metapackage32.iss > McXtrace-${1}-metapackage32.iss
./iscc McXtrace-${1}-metapackage32.iss
mv Output/setup.exe dist/McXtrace-Metapackage-${1}-win32.exe
fi