This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmake_build.gsl
executable file
·73 lines (61 loc) · 1.79 KB
/
make_build.gsl
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
.# GSL script to produce readme.txt, build.sh and build.bat
.# Uses a full manifest.xml file
.# This script should be put into the ibase-boot bootstrap
.#
.for root.package
. output "readme.txt"
This is the $(name:) $(release:) source distribution. To build the package
run the command:
sh build.sh
Under Linux/Unix, and under Windows, run this command from a console window:
build
You will need MSVC installed for command line use. Please see www.openamq.org
for more details.
. output "build.sh"
#!/bin/sh
# Build and install $(name:) $(release:) and dependent products
# Set the IBASE variable to the installation directory
if [ -z "\$IBASE" ]; then
echo 'The IBASE environment variable is not defined.'
echo 'Set this to desired installation directory, e.g. \$HOME/ibase.'
echo 'Then, add \$IBASE/bin to your PATH for best results.'
exit 1
fi
. for product
# Build $(name:)
cd $(name:)
sh ./boomake build
test $BOOM_NOTEST || sh ./boomake test
sh ./boomake install;
if [ \$? != 0 ]; then
echo "E: Build of $(name:) failed" 1>&2
exit 1
fi
cd ..
.endfor
# Done successfully
echo "Finished building and installing $(name:) $(release:)."
.#
. output "build.bat"
@echo off
:- Build and install $(name:) $(release:) and dependent products
:- Set the IBASE variable to the installation directory
if "%IBASE%"=="" (
echo The IBASE environment variable is not defined.
echo Set this to desired installation directory, e.g. c:\ibase.
echo Then, add ^%IBASE^%/bin to your PATH for best results.
exit /b 1
)
. for product
:- Build $(name:)
cd $(name:)
call boomake build test install
if errorlevel 1 (
echo E: Build of $(name:) failed
exit /b 1
)
cd ..
. endfor
:- Done successfully
echo Finished building and installing $(name:) $(release:).
.endfor