make-binary-archive:renamed files so the script would work

This commit is contained in:
andy5995
2018-02-03 15:48:33 -06:00
committed by Andy Alt
parent 7fbac48394
commit 7caa602e46
7 changed files with 50 additions and 52 deletions

View File

@@ -1,16 +1,16 @@
#!/bin/bash #!/bin/bash
# Use this script to build MegaGlest Source Code Archive for a Version Release # Use this script to build ZetaGlest Source Code Archive for a Version Release
# (Source archive for 'make install', without embedded content) # (Source archive for 'make install', without embedded content)
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com> # Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+ # Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
VERSION=$(./mg-version.sh --version) VERSION=$(./mg-version.sh --version)
RELEASENAME=megaglest-source RELEASENAME=zetaglest-binary
PACKAGE="$RELEASENAME-$VERSION.tar.xz" PACKAGE="$RELEASENAME-$VERSION.tar.xz"
CURRENTDIR="$(dirname $(readlink -f $0))" CURRENTDIR="$(dirname $(readlink -f $0))"
RELEASEDIR_ROOT="$CURRENTDIR/../../../release" RELEASEDIR_ROOT="$CURRENTDIR/../../../release"
RELEASEDIR="$RELEASEDIR_ROOT/$RELEASENAME-$VERSION/megaglest-$VERSION" RELEASEDIR="$RELEASEDIR_ROOT/$RELEASENAME-$VERSION/zetaglest-$VERSION"
SOURCEDIR="$CURRENTDIR/../../source/" SOURCEDIR="$CURRENTDIR/../../source/"
REPODIR="$CURRENTDIR/../../" REPODIR="$CURRENTDIR/../../"
@@ -55,7 +55,7 @@ rm -rf "$RELEASEDIR/source/shared_lib/include/platform/miniupnpc/"
cd ${CURRENTDIR} cd ${CURRENTDIR}
echo "Creating $PACKAGE" echo "Creating $PACKAGE"
[[ -f "$RELEASEDIR_ROOT/$PACKAGE" ]] && rm "$RELEASEDIR_ROOT/$PACKAGE" [[ -f "$RELEASEDIR_ROOT/$PACKAGE" ]] && rm "$RELEASEDIR_ROOT/$PACKAGE"
tar cJf "$RELEASEDIR_ROOT/$PACKAGE" -C "$RELEASEDIR_ROOT/$RELEASENAME-$VERSION" "megaglest-$VERSION" tar cJf "$RELEASEDIR_ROOT/$PACKAGE" -C "$RELEASEDIR_ROOT/$RELEASENAME-$VERSION" "zetaglest-$VERSION"
tar cJf "$RELEASEDIR_ROOT/$PACKAGE" -C "$RELEASEDIR_ROOT/$RELEASENAME-$VERSION" "zetaglest-$VERSION"
ls -la $RELEASEDIR_ROOT/$PACKAGE ls -la $RELEASEDIR_ROOT/$PACKAGE

View File

@@ -21,10 +21,8 @@
# user connecting to a headless server controls it. If this user disconnects, # user connecting to a headless server controls it. If this user disconnects,
# the next user who connects (or had already connected) takes control. # the next user who connects (or had already connected) takes control.
# #
# Please read https://docs.megaglest.org/MG/Dedicated_Server for more information
#
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# 2013 Written by Tom Reynolds <tomreyn[at]megaglest.org> # 2013 Written by Tom Reynolds <tomreyn[at]zetaglest.org>
# 2015 Rewritten by filux <heross(@@)o2.pl> # 2015 Rewritten by filux <heross(@@)o2.pl>
# Copyright (c) 2013-2017 under GNU GPL v3.0+ # Copyright (c) 2013-2017 under GNU GPL v3.0+
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------

View File

@@ -1,33 +0,0 @@
#!/bin/sh
# Use this script to improve configuration of '.desktop' files.
# ----------------------------------------------------------------------------
# 2014 Written by filux <heross(@@)o2.pl>
# Copyright (c) 2014-2016 under GNU GPL v3.0+
LANG=C
CURRENTDIR="$(dirname "$(readlink -f "$0")")"
cd "$CURRENTDIR"; prmtr="Icon="; prmtr2="Exec="
if [ -f "megaglest.desktop" ] && [ -f "megaglest.png" ] && [ -f "megaglest" ] \
&& [ -f "start_megaglest" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/megaglest.desktop"; icon_location="$CURRENTDIR/megaglest.png"
exec_location="$CURRENTDIR/start_megaglest"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi
if [ -f "megaglest_editor.desktop" ] && [ -f "megaglest.png" ] && [ -f "megaglest_editor" ] \
&& [ -f "start_megaglest_mapeditor" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/megaglest_editor.desktop"
icon_location="$CURRENTDIR/megaglest.png"; exec_location="$CURRENTDIR/start_megaglest_mapeditor"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi
if [ -f "megaglest_g3dviewer.desktop" ] && [ -f "megaglest.png" ] && [ -f "megaglest_g3dviewer" ] \
&& [ -f "start_megaglest_g3dviewer" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/megaglest_g3dviewer.desktop"
icon_location="$CURRENTDIR/megaglest.png"; exec_location="$CURRENTDIR/start_megaglest_g3dviewer"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi

View File

@@ -9,20 +9,20 @@ LANG=C
SCRIPTLOCATION="$(readlink -f "$0")" SCRIPTLOCATION="$(readlink -f "$0")"
GAMEDIR="$(dirname "$SCRIPTLOCATION")" GAMEDIR="$(dirname "$SCRIPTLOCATION")"
ARCHITECTURE="$(uname -m | tr '[A-Z]' '[a-z]')" ARCHITECTURE="$(uname -m | tr '[A-Z]' '[a-z]')"
BugReportEngine="https://github.com/MegaGlest/megaglest-source/issues" BugReportEngine="https://github.com/ZetaGlest/zetaglest-source/issues"
BugReportBoth="https://forum.megaglest.org/index.php?board=23.0" BugReportBoth="https://github.com/ZetaGlest"
# ------- # -------
# useful for mods # useful for mods
BugReportBoth2="$BugReportBoth" BugReportBoth2="$BugReportBoth"
BugReportData="https://github.com/MegaGlest/megaglest-data/issues" BugReportData="https://github.com/ZetaGlest/zetaglest-data/issues"
EXC_BINARY="megaglest" EXC_BINARY="zetaglest"
if [ -f "${GAMEDIR}/megaglest_shim" ]; then EXC_BINARY="megaglest_shim" if [ -f "${GAMEDIR}/zetaglest_shim" ]; then EXC_BINARY="zetaglest_shim"
SHORT_GAME_NAME="megaglest" SHORT_GAME_NAME="zetaglest"
# if long game name contain spaces then write it inside quotes # if long game name contain spaces then write it inside quotes
# e.g. "\"long name with spaces\"" # e.g. "\"long name with spaces\""
LONG_GAME_NAME="MegaGlest" LONG_GAME_NAME="ZetaGlest"
# ------- # -------
LIBDIR="lib"; ExitStatus=0; LibsWarnings=""; IgnoredLibs=""; FirstLnError="" LIBDIR="lib"; ExitStatus=0; LibsWarnings=""; IgnoredLibs=""; FirstLnError=""

View File

@@ -8,8 +8,8 @@ SCRIPTLOCATION="$(readlink -f "$0")"
GAMEDIR="$(dirname "$SCRIPTLOCATION")" GAMEDIR="$(dirname "$SCRIPTLOCATION")"
# ------- # -------
# useful for mods # useful for mods
EXC_BINARY="megaglest_g3dviewer" EXC_BINARY="zetaglest_g3dviewer"
BASIC_SCRIPT="start_megaglest" BASIC_SCRIPT="start_zetaglest"
# ------- # -------
LIBDIR="lib" LIBDIR="lib"
WARNINGS="$("$GAMEDIR/$BASIC_SCRIPT" --tool-g3dviewer "$EXC_BINARY" 2>&1)" WARNINGS="$("$GAMEDIR/$BASIC_SCRIPT" --tool-g3dviewer "$EXC_BINARY" 2>&1)"

View File

@@ -8,8 +8,8 @@ SCRIPTLOCATION="$(readlink -f "$0")"
GAMEDIR="$(dirname "$SCRIPTLOCATION")" GAMEDIR="$(dirname "$SCRIPTLOCATION")"
# ------- # -------
# useful for mods # useful for mods
EXC_BINARY="megaglest_editor" EXC_BINARY="zetaglest_editor"
BASIC_SCRIPT="start_megaglest" BASIC_SCRIPT="start_zetaglest"
# ------- # -------
LIBDIR="lib" LIBDIR="lib"
WARNINGS="$("$GAMEDIR/$BASIC_SCRIPT" --tool-editor "$EXC_BINARY" 2>&1)" WARNINGS="$("$GAMEDIR/$BASIC_SCRIPT" --tool-editor "$EXC_BINARY" 2>&1)"

View File

@@ -0,0 +1,33 @@
#!/bin/sh
# Use this script to improve configuration of '.desktop' files.
# ----------------------------------------------------------------------------
# 2014 Written by filux <heross(@@)o2.pl>
# Copyright (c) 2014-2016 under GNU GPL v3.0+
LANG=C
CURRENTDIR="$(dirname "$(readlink -f "$0")")"
cd "$CURRENTDIR"; prmtr="Icon="; prmtr2="Exec="
if [ -f "zetaglest.desktop" ] && [ -f "zetaglest.png" ] && [ -f "zetaglest" ] \
&& [ -f "start_zetaglest" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/zetaglest.desktop"; icon_location="$CURRENTDIR/zetaglest.png"
exec_location="$CURRENTDIR/start_zetaglest"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi
if [ -f "zetaglest_editor.desktop" ] && [ -f "zetaglest.png" ] && [ -f "zetaglest_editor" ] \
&& [ -f "start_zetaglest_mapeditor" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/zetaglest_editor.desktop"
icon_location="$CURRENTDIR/zetaglest.png"; exec_location="$CURRENTDIR/start_zetaglest_mapeditor"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi
if [ -f "zetaglest_g3dviewer.desktop" ] && [ -f "zetaglest.png" ] && [ -f "zetaglest_g3dviewer" ] \
&& [ -f "start_zetaglest_g3dviewer" ] && [ ! -f "glest-dev.ini" ]; then
desktop_location="$CURRENTDIR/zetaglest_g3dviewer.desktop"
icon_location="$CURRENTDIR/zetaglest.png"; exec_location="$CURRENTDIR/start_zetaglest_g3dviewer"
sed -i -e "s#$prmtr.*#$prmtr$icon_location#" -e "s#$prmtr2.*#$prmtr2\"$exec_location\"#" \
"$desktop_location"
chmod +x "$desktop_location"
fi