2006-11-28 18:24:06 -05:00
|
|
|
#!/bin/bash
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
set -o errexit
|
2006-12-07 16:03:45 -05:00
|
|
|
#set -o xtrace
|
2006-11-28 18:24:06 -05:00
|
|
|
|
|
|
|
echo "-=-=-=- Hello from $HOSTNAME -=-=-=-"
|
|
|
|
|
|
|
|
VERSION=$1
|
|
|
|
VER2=$2
|
|
|
|
|
|
|
|
|
|
|
|
tar xjf wxPython-src-$VERSION.tar.bz2
|
|
|
|
rm wxPython-src-$VERSION.tar.bz2
|
|
|
|
|
|
|
|
mv wxPython-src-$VERSION wxwidgets$VER2-$VERSION
|
|
|
|
cd wxwidgets$VER2-$VERSION
|
|
|
|
|
|
|
|
CLVERSION=`dpkg-parsechangelog | sed -n 's/Version: //p' | sed 's/-.*//'`
|
|
|
|
if [ $CLVERSION != $VERSION ]; then
|
|
|
|
dch --newversion $VERSION-0 "automated build"
|
|
|
|
fi
|
|
|
|
|
|
|
|
debian/rules debian/control
|
|
|
|
dpkg-buildpackage -rfakeroot -us -uc
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -r wxwidgets$VER2-$VERSION
|
|
|
|
|
|
|
|
echo "-=-=-=- Goodbye! -=-=-=-"
|
|
|
|
exit 0
|