|
Revision 7, 0.8 KB
(checked in by omry, 4 years ago)
|
|
|
| Line | |
|---|
| 1 | <?xml version="1.0"?> |
|---|
| 2 | <!-- ====================================================================== |
|---|
| 3 | EBuild packager |
|---|
| 4 | Omry Yadan. |
|---|
| 5 | ====================================================================== --> |
|---|
| 6 | <project name="FireStats" default="pack"> |
|---|
| 7 | |
|---|
| 8 | <target name="pack" depends="setup,clean"> |
|---|
| 9 | |
|---|
| 10 | <delete dir="dist" failonerror="false"/> |
|---|
| 11 | <mkdir dir="dist"/> |
|---|
| 12 | <mkdir dir="dist/tmp"/> |
|---|
| 13 | |
|---|
| 14 | <copy todir="dist/tmp"> |
|---|
| 15 | <fileset dir="." excludes="pack-ebuild.xml,pack-ebuild.properties,dist/**"/> |
|---|
| 16 | </copy> |
|---|
| 17 | |
|---|
| 18 | <zip destfile="dist/ebuild-${version}.zip"> |
|---|
| 19 | <zipfileset dir="dist/tmp" prefix="ebuild"/> |
|---|
| 20 | </zip> |
|---|
| 21 | <delete dir="dist/tmp" failonerror="false"/> |
|---|
| 22 | </target> |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | <target name="setup"> |
|---|
| 26 | <loadproperties srcFile="pack-ebuild.properties"/> |
|---|
| 27 | </target> |
|---|
| 28 | |
|---|
| 29 | <target name="clean"> |
|---|
| 30 | <delete dir="dist" failonerror="false"/> |
|---|
| 31 | </target> |
|---|
| 32 | |
|---|
| 33 | </project> |
|---|
| 34 | |
|---|