-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When running a build in the default 'single archive' mode, automatica…
…lly unpack the final package so it is ready to run
- Loading branch information
Bruce Leidl
committed
Apr 14, 2009
1 parent
f4e2fdc
commit a7633a1
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ build/stage | |
build/buildpack | ||
build/archives/*.bz2 | ||
platform/*/*/bin/ | ||
netifera |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0"?> | ||
<project name="netifera.unpack"> | ||
|
||
<property name="build.output" location="build/stage/I.NetiferaBuild" /> | ||
|
||
<!-- If running in default 'single build' mode, unpack the final archive so it is ready to run --> | ||
|
||
<target name="unpack-archive" depends="choose-archive,unpack-setup,unpack-choice" unless="build.all" /> | ||
|
||
<target name="unpack-choice" depends="unpack-osx,unpack-linux,unpack-win32" unless="build.all" /> | ||
|
||
<!-- Delete a previously unpacked netifera package if it exists --> | ||
|
||
<target name="unpack-setup"> | ||
<delete dir="netifera" /> | ||
</target> | ||
|
||
<!-- One target for each operating system --> | ||
|
||
<target name="unpack-osx" if="unpack.osx"> | ||
<unzip src="${build.output}/NetiferaBuild-macosx.carbon.x86.zip" dest="${basedir}" /> | ||
<chmod file="netifera/netifera.app/Contents/MacOS/netifera" perm="755" /> | ||
</target> | ||
|
||
<target name="unpack-linux" if="unpack.linux"> | ||
<unzip src="${build.output}/NetiferaBuild-linux.gtk.x86.zip" dest="${basedir}" /> | ||
<chmod file="netifera/netifera" perm="755" /> | ||
</target> | ||
|
||
<target name="unpack-win32" if="unpack.win32"> | ||
<unzip src="${build.output}/NetiferaBuild-win32.win32.x86.zip" dest="${basedir}" /> | ||
</target> | ||
|
||
<!-- Set a property depending on which OS the build is being run on --> | ||
|
||
<target name="choose-archive" unless="build.all"> | ||
<condition property="unpack.linux"> | ||
<os name="Linux" /> | ||
</condition> | ||
|
||
<condition property="unpack.osx"> | ||
<os name="Mac OS X" /> | ||
</condition> | ||
|
||
<condition property="unpack.win32"> | ||
<os family="windows" /> | ||
</condition> | ||
</target> | ||
</project> |