source: main/trunk/package-kits/linux/pkg.in/segments/build-core@ 29481

Last change on this file since 29481 was 29481, checked in by Jeremy Symon, 9 years ago

Working on a script for generating build scripts for different packages and systems with minimal code duplication and human intervention. Currently should generate working Makefiles, but doesn't handle the package managers yet. Since both RPM and APT package managers rely on Makefiles, I will change the pacman scripts to also use Makefiles, and see if all the package manager scripts can be automatically generated (at least the metadata)

File size: 735 bytes
Line 
1prepare: src
2 cp -L *.properties *.patch src/
3 cd src ; \
4 export JAVA_HOME=$(java) ; \
5 yes | ant prepare
6 patch -d src/ -p0 -N -i gs2build.patch || :
7 cd src/gs2build/build-src ; \
8 autoconf
9 rm -rf src/packages/*.zip
10 rm -rf src/packages/axis/docs
11 rm -rf src/gs2build/build-src/packages
12 touch prepare
13
14build: prepare
15 cd src ; \
16 JAVA_HOME=$(java) ant install
17 mv src/lib/jni/*.jar src/web/WEB-INF/lib/
18 # patch for gs2build tempdir
19 patch -d src/ -p0 -N -i perl-util.patch || :
20 # delete windows/mac stuff
21 find src/ -type d \( -iname "win32" -o -iname "windows" -o -iname "winutil" -o -iname "darwin" \) -exec rm -rf {} \; 2> /dev/null || :
22 find src/ \( -iname "*.dll" -o -iname "*.exe" \) -exec rm -rf {} \; || :
23 touch build
Note: See TracBrowser for help on using the repository browser.