diff --git a/mk/linux/makerelease.sh b/mk/linux/makerelease.sh new file mode 100755 index 000000000..71b8b8ba4 --- /dev/null +++ b/mk/linux/makerelease.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +VERSION=`autoconf -t AC_INIT | sed -e 's/[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1/g'` +RELEASENAME=megaglest-source +RELEASEDIR="`pwd`/release/$RELEASENAME-$VERSION" + +echo "Creating source package in $RELEASEDIR" + +rm -rf $RELEASEDIR +mkdir -p $RELEASEDIR +# copy sources +pushd "`pwd`/../../source" +find glest_game/ \( -name "*.cpp" -o -name "*.h" \) -exec cp -p --parents "{}" $RELEASEDIR ';' +find shared_lib/ \( -name "*.cpp" -o -name "*.h" \) -exec cp -p --parents "{}" $RELEASEDIR ';' +find glest_map_editor/ \( -name "*.cpp" -o -name "*.h" \) -exec cp -p --parents "{}" $RELEASEDIR ';' +find g3d_viewer/ \( -name "*.cpp" -o -name "*.h" \) -exec cp -p --parents "{}" $RELEASEDIR ';' +find configurator/ \( -name "*.cpp" -o -name "*.h" \) -exec cp -p --parents "{}" $RELEASEDIR ';' +popd +AUTOCONFSTUFF="configure.ac autogen.sh Jamrules Jamfile `find mk/jam -name "*.jam"` `find mk/autoconf -name "*.m4" -o -name "config.*" -o -name "*sh"`" + +cp -p --parents $AUTOCONFSTUFF $RELEASEDIR +cp -p ../../docs/readme*.txt ../../docs/*license*.txt $RELEASEDIR +cp -p glest.ini $RELEASEDIR + +pushd $RELEASEDIR +./autogen.sh +popd + +pushd release +PACKAGE="$RELEASENAME-$VERSION.tar.bz2" +echo "creating $PACKAGE" +tar -c --bzip2 -f "$PACKAGE" "$RELEASENAME-$VERSION" +popd diff --git a/mk/linux/start_configuration b/mk/linux/start_configuration new file mode 100755 index 000000000..36faa9514 --- /dev/null +++ b/mk/linux/start_configuration @@ -0,0 +1,24 @@ +#!/bin/sh + +# Library directory +LIBDIR="lib" + +# If we are launching from a symlink, such as /usr/local/bin/runglest.sh, we need to get where +# the symlink points to +pth="`readlink $0`" + +# $pth will be empty if our start path wasnt a symlink +if [ $pth ]; then + GAMEDIR="`dirname $pth`" +else + GAMEDIR="`dirname $0`" +fi + +# Change to the game dir, and go! +cd $GAMEDIR +# export game library directory +test -n "${LIBDIR}" && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GAMEDIR}/${LIBDIR}" + +./glest_configurator +# ./glest > /tmp/`date +"%F_%k-%M-%S"`.glest.log 2>&1 + diff --git a/mk/linux/start_editor b/mk/linux/start_editor new file mode 100755 index 000000000..012922630 --- /dev/null +++ b/mk/linux/start_editor @@ -0,0 +1,24 @@ +#!/bin/sh + +# Library directory +LIBDIR="lib" + +# If we are launching from a symlink, such as /usr/local/bin/runglest.sh, we need to get where +# the symlink points to +pth="`readlink $0`" + +# $pth will be empty if our start path wasnt a symlink +if [ $pth ]; then + GAMEDIR="`dirname $pth`" +else + GAMEDIR="`dirname $0`" +fi + +# Change to the game dir, and go! +cd $GAMEDIR +# export game library directory +test -n "${LIBDIR}" && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GAMEDIR}/${LIBDIR}" + +./glest_editor +# ./glest > /tmp/`date +"%F_%k-%M-%S"`.glest.log 2>&1 +