summaryrefslogtreecommitdiff
path: root/sysutils/luma/files/patch-install.py
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/luma/files/patch-install.py')
-rw-r--r--sysutils/luma/files/patch-install.py49
1 files changed, 42 insertions, 7 deletions
diff --git a/sysutils/luma/files/patch-install.py b/sysutils/luma/files/patch-install.py
index 9c56f975aa04..48346dc78c35 100644
--- a/sysutils/luma/files/patch-install.py
+++ b/sysutils/luma/files/patch-install.py
@@ -1,14 +1,49 @@
---- install.py.orig Tue May 18 22:01:47 2004
-+++ install.py Wed Jun 2 22:09:53 2004
-@@ -137,6 +137,7 @@
+--- install.py.orig Mon Dec 13 00:45:57 2004
++++ install.py Tue Dec 14 13:28:05 2004
+@@ -99,26 +99,15 @@
+ print "Copy program files...\n"
+
+ try:
+- a = Popen3("cp -R bin " + prefixDir)
+- while a.poll() == -1:
+- pass
+- if a.poll() > 0:
+- raise "CopyError", "Error!!! Could not copy File. Maybe wrong permissions?"
++ for idir in ["bin", "lib", "share", "man"]:
++ a = Popen3("cp -R " + idir + " " + prefixDir)
++ while a.poll() == -1:
++ pass
++ if a.poll() > 0:
++ raise "CopyError", "Error!!! Could not copy File. Maybe wrong permissions?"
+
+- a = Popen3("cp -R lib " + prefixDir)
+- while a.poll() == -1:
+- pass
+- if a.poll() > 0:
+- raise "CopyError", "Error!!! Could not copy File. Maybe wrong permissions?"
+-
+- a = Popen3("cp -R share " + prefixDir)
+- while a.poll() == -1:
+- pass
+- if a.poll() > 0:
+- raise "CopyError", "Error!!! Could not copy File. Maybe wrong permissions?"
+-
+- print "Finished copying program files.\n"
+- print "LUMA installed succesfully! :)"
++ print "Finished copying program files.\n"
++ print "LUMA installed succesfully! :)"
+
+ except "CopyError", errorMessage:
+ print errorMessage
+@@ -157,6 +146,7 @@
helpString = """Install options:
- --prefix=PATH \t\t Install path (e.g. /usr/local)
+ --prefix=PATH \t\t Install path (default is /usr/local)
--compile-only \t Just compile source files. No installation.
+ build \t The same as --compile-only
\n"""
+
print helpString
- sys.exit(1)
-@@ -166,7 +167,7 @@
+@@ -194,7 +184,7 @@
return
for x in sys.argv[1:]:
@@ -17,7 +52,7 @@
global compileOnly
compileOnly = True
elif x[:9] == "--prefix=":
-@@ -174,7 +175,7 @@
+@@ -202,7 +192,7 @@
prefixDir = x[9:]
if (prefixDir[-1] == "/") and (len(prefixDir) > 1):
prefixDir = prefixDir[:-1]