Make indenting great again (and add missing fi)
This commit is contained in:
parent
12998eb10f
commit
6e8cdcab01
|
@ -17,7 +17,7 @@ BugReportBoth2="$BugReportBoth"
|
|||
BugReportData="https://github.com/MegaGlest/megaglest-data/issues"
|
||||
|
||||
EXC_BINARY="megaglest"
|
||||
if [ -f "${GAMEDIR}/megaglest_shim" ]; then EXC_BINARY="megaglest_shim"
|
||||
if [ -f "${GAMEDIR}/megaglest_shim" ]; then EXC_BINARY="megaglest_shim"; fi
|
||||
|
||||
SHORT_GAME_NAME="megaglest"
|
||||
# if long game name contain spaces then write it inside quotes
|
||||
|
@ -29,8 +29,9 @@ LIBDIR="lib"; ExitStatus=0; LibsWarnings=""; IgnoredLibs=""; FirstLnError=""
|
|||
LibDir_wP="$GAMEDIR/$LIBDIR"; LIBDIR_B=".${LIBDIR}_bak"; LibDirB_wP="$GAMEDIR/$LIBDIR_B"
|
||||
if [ ! -d "$LibDir_wP" ]; then mkdir "$LibDir_wP"; fi
|
||||
if [ ! -d "$LibDirB_wP" ]; then mkdir "$LibDirB_wP"; fi
|
||||
if [ "$1" = "--tool-editor" ] || [ "$1" = "--tool-g3dviewer" ] || [ "$1" = "--tool-buginfo" ];
|
||||
then OperatingMode="$1"; else OperatingMode="--game"; fi
|
||||
if [ "$1" = "--tool-editor" ] || [ "$1" = "--tool-g3dviewer" ] || [ "$1" = "--tool-buginfo" ]; then
|
||||
OperatingMode="$1"; else OperatingMode="--game"
|
||||
fi
|
||||
BeginTime="$(date +"%s")"
|
||||
if [ -e "/etc/os-release" ]; then
|
||||
OS_INFO="$(cat "/etc/os-release" | grep '^PRETTY_NAME=' | awk -F '"' '{print $2}')"
|
||||
|
@ -64,8 +65,10 @@ if [ "$OperatingMode" != "--tool-buginfo" ]; then
|
|||
LDCONFIG_P_R_ARCH="$(echo "$LDCONFIG_P" | grep -v "$GrepPattern")"
|
||||
ArchSortLibs="yes"
|
||||
fi
|
||||
if [ "$OperatingMode" = "--game" ]; then ldd_target="$GAMEDIR/$EXC_BINARY"
|
||||
else ldd_target="$GAMEDIR/$2"; fi
|
||||
if [ "$OperatingMode" = "--game" ]; then
|
||||
ldd_target="$GAMEDIR/$EXC_BINARY"
|
||||
else ldd_target="$GAMEDIR/$2"
|
||||
fi
|
||||
|
||||
hasSOlib() {
|
||||
if [ "$2" = "myarch" ]; then
|
||||
|
@ -77,6 +80,7 @@ if [ "$OperatingMode" != "--tool-buginfo" ]; then
|
|||
echo "$OS_libs_list" | grep -m 1 "[^_-]$1" | cut "-d>" -f2 | cut "-d " -f2
|
||||
fi
|
||||
}
|
||||
|
||||
findMissingSO() {
|
||||
SO_WANTED_LIB="$1"; SO_WANTED_LIB2="$2"; SO_LIB_PATTERN="$3"
|
||||
SO_LINKED_LIB="$LibDir_wP/$SO_WANTED_LIB2"
|
||||
|
|
Loading…
Reference in New Issue