Index: branches/ErmaC/package/Scripts/Keymaps/postinstall
===================================================================
--- branches/ErmaC/package/Scripts/Keymaps/postinstall (revision 1570)
+++ branches/ErmaC/package/Scripts/Keymaps/postinstall (revision 1571)
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-# Script to add KeyLayout for Chameleon boot loaders
-
-import sys
-import os
-import shutil
-
-vol = str(sys.argv[3])
-extrafolder = vol + "/tmpcham/Extra"
-if not os.path.exists(extrafolder):
- os.makedirs(extrafolder)
-
-boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
-plist = vol + boot
-
-if not os.path.exists(plist):
- shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
-
-infile = open(plist, "r")
-# check if Graphics_Mode has been written or not
-KeyLayoutCheck = False
-
-body = ""
-
-for line in infile:
- # if we finish the tags and haven't written KeyLayout Yet
- if "" in line and KeyLayoutCheck == False:
- line = " KeyLayout\n"
- line += " @@KEYMAP@@\n"
- line += "\n"
- KeyLayoutCheck = True
-
- body += line
-
-infile.close()
-
-outfile = open(plist, "w")
-outfile.write(body)
-outfile.close()
Index: branches/ErmaC/package/Scripts/Keymaps/postinstall.in
===================================================================
--- branches/ErmaC/package/Scripts/Keymaps/postinstall.in (revision 0)
+++ branches/ErmaC/package/Scripts/Keymaps/postinstall.in (revision 1571)
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+# Script to add KeyLayout for Chameleon boot loaders
+
+import sys
+import os
+import shutil
+
+vol = str(sys.argv[3])
+extrafolder = vol + "/tmpcham/Extra"
+if not os.path.exists(extrafolder):
+ os.makedirs(extrafolder)
+
+boot = "/tmpcham/Extra/org.chameleon.Boot.plist"
+plist = vol + boot
+
+if not os.path.exists(plist):
+ shutil.copy('/Library/Preferences/SystemConfiguration/com.apple.Boot.plist', plist)
+
+infile = open(plist, "r")
+# check if Graphics_Mode has been written or not
+KeyLayoutCheck = False
+
+body = ""
+
+for line in infile:
+ # if we finish the tags and haven't written KeyLayout Yet
+ if "" in line and KeyLayoutCheck == False:
+ line = " KeyLayout\n"
+ line += " @@KEYMAP@@\n"
+ line += "\n"
+ KeyLayoutCheck = True
+
+ body += line
+
+infile.close()
+
+outfile = open(plist, "w")
+outfile.write(body)
+outfile.close()
Property changes on: branches/ErmaC/package/Scripts/Keymaps/postinstall.in
___________________________________________________________________
Added: svn:executable
+ *
Index: branches/ErmaC/package/buildpkg.sh
===================================================================
--- branches/ErmaC/package/buildpkg.sh (revision 1570)
+++ branches/ErmaC/package/buildpkg.sh (revision 1571)
@@ -300,7 +300,7 @@
do
mkdir -p "${1}/${keymaps[$i]}/Root/"
mkdir -p "${1}/${keymaps[$i]}/Scripts/"
- sed "s/@@KEYMAP@@/${keymaps[$i]}/g" "${pkgroot}/Scripts/Keymaps/postinstall" > "${1}/${keymaps[$i]}/Scripts/postinstall" && \
+ sed "s/@@KEYMAP@@/${keymaps[$i]}/g" "${pkgroot}/Scripts/Keymaps/postinstall.in" > "${1}/${keymaps[$i]}/Scripts/postinstall" && \
chmod +rx "${1}/${keymaps[$i]}/Scripts/postinstall"
echo " [BUILD] ${keymaps[$i]} "
#blackosx = why use install location /tmpcham for this ? changing to root