summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Latsas <tlatsas@users.sourceforge.net>2009-05-30 00:50:26 +0300
committerNick White <git@njw.me.uk>2009-06-01 01:17:23 +0100
commitad17a4eecad2230adae76869803dd003f3f9db83 (patch)
treed679e7a19b096c682f5253f92b654116cb7e8de2
parentb4aa4d42ec8c4e9fd770e199d0dc231fed7614b3 (diff)
downloadgemrb-gameinstallers-ad17a4eecad2230adae76869803dd003f3f9db83.tar.bz2
gemrb-gameinstallers-ad17a4eecad2230adae76869803dd003f3f9db83.zip
minor fixes in auto installer and fixed the copylower function in generic includes
-rwxr-xr-xauto-installer.sh1
-rw-r--r--includes/generic-includes.sh5
2 files changed, 4 insertions, 2 deletions
diff --git a/auto-installer.sh b/auto-installer.sh
index 6455020..2a74442 100755
--- a/auto-installer.sh
+++ b/auto-installer.sh
@@ -105,6 +105,7 @@ while [ -z "$MINSCRIPT" ]; do
PATCHES="iwd/install-patch-uk-fix.sh iwd/install-patch-us.sh"
WINDOWSFILES="3dfx.dll config.exe icewind.ini keymap.ini language.ini mpicewnd.mpi"
CDNO=2
+ ;;
* )
echo "Unrecognised CD - please select game from menu"
choosegame
diff --git a/includes/generic-includes.sh b/includes/generic-includes.sh
index 1e0e89d..97988d5 100644
--- a/includes/generic-includes.sh
+++ b/includes/generic-includes.sh
@@ -143,11 +143,12 @@ function copylower
# usage: copylower source destination
if [ -d "$1" ]; then
for filename in $(find "$1" -type f); do
- lowerpath="$(echo $filename|gawk -F "$1" '{print $2}'|tr A-Z a-z)"
+ lowerpath="$(basename $filename |tr A-Z a-z)"
cp -f "$filename" "$2/$lowerpath" || die
done
elif [ -f "$1" ]; then
- cp -f "$(echo $1|tr A-Z a-z)" "$2"
+ lowername="$(basename $1|tr A-Z a-z)"
+ cp -f "$1" "$2"/$lowername
fi
}