#!/bin/bash

IZPACK_DIR="/usr/local/IzPack421"
#IZPACK_DIR="/Applications/IzPack"

export TIGVER=`grep -m 1 "Tigase-Version:" MANIFEST.MF | sed -e "s/Tigase-Version: \(.*\)/\\1/"`
sed -e "s/<appversion>\([^<]*\)<\/appversion>/<appversion>$TIGVER<\/appversion>/" \
    src/main/izpack/install.xml > src/main/izpack/install_copy.xml

ant -f src/main/izpack/build.xml -Dinstaller.path=$IZPACK_DIR

$IZPACK_DIR/bin/compile \
     src/main/izpack/install_copy.xml \
     -h $IZPACK_DIR/ \
     -b . -o ./packages/tigase-server-$TIGVER.jar

python $IZPACK_DIR/utils/wrappers/izpack2exe/izpack2exe.py \
     --file=./packages/tigase-server-$TIGVER.jar --no-upx \
     --output=./packages/tigase-server-$TIGVER.exe

rm -f src/main/izpack/install_copy.xml

#!/bin/bash

#IZPACK_DIR="/usr/local/IzPack421"
IZPACK_DIR="/Applications/IzPack"

export TIGVER=`grep -m 1 "Tigase-Version:" MANIFEST.MF | sed -e "s/Tigase-Version: \(.*\)/\\1/"`
sed -e "s/<appversion>\([^<]*\)<\/appversion>/<appversion>$TIGVER<\/appversion>/" \
    src/main/izpack/install.xml > src/main/izpack/install_copy.xml

ant -f src/main/izpack/build.xml -Dinstaller.path=$IZPACK_DIR

$IZPACK_DIR/bin/compile \
     src/main/izpack/install_copy.xml \
     -h $IZPACK_DIR/ \
     -b . -o ./packages/tigase-server-$TIGVER.jar

python $IZPACK_DIR/utils/wrappers/izpack2exe/izpack2exe.py \
     --file=./packages/tigase-server-$TIGVER.jar --no-upx \
     --output=./packages/tigase-server-$TIGVER.exe

rm -f src/main/izpack/install_copy.xml

Set IzPack source to original
Set IzPack source to original

git-svn-id: 4a0daf30c0bbd291b3bc5fe8f058bf11ee523347@1580 7d282ba1-3ae6-0310-8f9b-c9008a0864d2
