forked from mia/Aegisub
ba87160fdc
Originally committed to SVN as r3494.
33 lines
1 KiB
Bash
Executable file
33 lines
1 KiB
Bash
Executable file
#!/bin/sh
|
|
DIST_NAME="aegisub-snap-r${1}"
|
|
UNAME_S=`uname -s`
|
|
|
|
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'
|
|
if test "${UNAME_S}" = "FreeBSD"; then
|
|
BIN_MAKE="gmake"
|
|
CONFIGURE_ARGS="--with-wx-config=/usr/home/verm/build/wx/lib/wx/config/gtk2-unicode-debug-2.9"
|
|
else
|
|
BIN_MAKE="make"
|
|
CONFIGURE_ARGS="--with-wx-config=/home/verm/build/wx/lib/wx/config/gtk2-unicode-debug-2.9"
|
|
fi
|
|
|
|
ACLOCAL_FLAGS="-I /home/verm/build/wx/share/aclocal" ./autogen.sh ${CONFIGURE_ARGS} || exit $?
|
|
|
|
# XXX: Work around ancient versions of intltool (cough DEBIAN)
|
|
touch intltool-update.in intltool-merge.in intltool-extract.in
|
|
|
|
${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
|
|
|