2009-05-01 05:58:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
DIST_NAME="aegisub-snap-r${1}"
|
2009-06-02 03:58:00 +02:00
|
|
|
UNAME_S=`uname -s`
|
2011-02-05 23:23:31 +01:00
|
|
|
CONFIGURE_ARGS="/mnt/devel/build/debug-wx-trunk-r66440//lib/wx/config/gtk2-unicode-2.9"
|
|
|
|
BIN_MAKE="make"
|
|
|
|
ACLOCAL_FLAGS="-I /home/verm/build/wx/share/aclocal" ./autogen.sh ${CONFIGURE_ARGS} || exit $?
|
|
|
|
|
|
|
|
CONFIGURE_ARGS="/mnt/devel/build/debug-wx-trunk-r66440//lib/wx/config/gtk2-unicode-2.9"
|
2009-05-01 05:58:23 +02:00
|
|
|
|
|
|
|
if test -z "${1}"; then
|
|
|
|
echo "You must supply a revision number!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# On FreeBSD "make" is PMake, so we need to use 'gmake'
|
2009-06-02 03:58:00 +02:00
|
|
|
if test "${UNAME_S}" = "FreeBSD"; then
|
2009-05-01 05:58:23 +02:00
|
|
|
BIN_MAKE="gmake"
|
|
|
|
fi
|
|
|
|
|
2009-06-02 03:58:00 +02:00
|
|
|
|
2009-05-01 05:58:23 +02:00
|
|
|
${BIN_MAKE} distdir distdir="${DIST_NAME}" || exit $?
|
|
|
|
|
|
|
|
# Put the name of the buildslave into ./slave_info as it may be useful for
|
|
|
|
# debugging localised buildslave issues if a user is using a snapshot.
|
|
|
|
echo "${2}" > "${DIST_NAME}/slave_info"
|
|
|
|
|
|
|
|
tar cf "${DIST_NAME}.tar" "${DIST_NAME}" || exit $?
|
|
|
|
bzip2 -v ${DIST_NAME}.tar
|
|
|
|
mv "${DIST_NAME}.tar.bz2" dist.tar.bz2
|