[PC-BSD Commits] r3307 - pbibuild/modules/lure/overlay-dir

svn at pcbsd.org svn at pcbsd.org
Wed Jan 21 10:50:45 PST 2009


Author: kris
Date: 2009-01-21 10:50:45 -0800 (Wed, 21 Jan 2009)
New Revision: 3307

Modified:
   pbibuild/modules/lure/overlay-dir/PBI.SetupScript.sh
Log:

Fixed LURE, to use the right variable names



Modified: pbibuild/modules/lure/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/lure/overlay-dir/PBI.SetupScript.sh	2009-01-21 18:32:30 UTC (rev 3306)
+++ pbibuild/modules/lure/overlay-dir/PBI.SetupScript.sh	2009-01-21 18:50:45 UTC (rev 3307)
@@ -23,7 +23,13 @@
 rm /Programs/${PROGDIR}/game/lure.lzma
 echo 'MSG: Select language...'
 IDIOMA=$(kdialog --combobox "Select a language:" "English" "Spanish" "French" "German" "Italian")
+if [ -z "${IDIOMA}" ]
+then
+   IDIOMA="English"
+fi
+
 echo "${IDIOMA}"
+
       if [ "${IDIOMA}" = "Spanish" ]; then
       IDIOMA="es"
       fi
@@ -43,8 +49,11 @@
       if [ "${IDIOMA}" = "English" ]; then
       IDIOMA="en"
       fi
-      mv -fR /Programs/${PROGNAME}/game/lure/lang/${IDIOMA}/ /Programs/${PROGNAME}/game/lure/
-      rm -fR /Programs/${PROGNAME}/game/lure/lang
+
+mkdir -p /Programs/${PROGDIR}/game/lure
+cp -R /Programs/${PROGDIR}/game/lure/lang/${IDIOMA}/* /Programs/${PROGDIR}/game/lure/
+rm -rf /Programs/${PROGDIR}/game/lure/lang
+
 # Save the right lang selected in the lure
 sed -e "s,IDIOMA,${IDIOMA},g" /Programs/${PROGDIR}/bin/lure > /tmp/lure
 mv /tmp/lure /Programs/${PROGDIR}/bin/lure



More information about the Commits mailing list