[PC-BSD Commits] r5038 - pbibuild/pbi-source/PBCsource

svn at pcbsd.org svn at pcbsd.org
Tue Nov 17 07:46:35 PST 2009


Author: kris
Date: 2009-11-17 07:46:35 -0800 (Tue, 17 Nov 2009)
New Revision: 5038

Modified:
   pbibuild/pbi-source/PBCsource/pbistart.c
Log:

Fixed big with setting LANG in pbistart



Modified: pbibuild/pbi-source/PBCsource/pbistart.c
===================================================================
--- pbibuild/pbi-source/PBCsource/pbistart.c	2009-11-17 15:24:41 UTC (rev 5037)
+++ pbibuild/pbi-source/PBCsource/pbistart.c	2009-11-17 15:46:35 UTC (rev 5038)
@@ -334,7 +334,7 @@
 {
 
 char pbiscript[600];
-strcpy(pbiscript, "echo \"#!/bin/sh\n\
+strcpy(pbiscript, "echo '#!/bin/sh\n\
 LANG=`cat lang`; export LANG\n\
 LD_LIBRARY_PATH=/Programs/.libs8/ ; export LD_LIBRARY_PATH\n\
 cd ");
@@ -345,16 +345,16 @@
 {
   // Check if the user prompted to only extract the files
   if ( extractmode == 1 ) {
-     strcat(pbiscript, "\n./PBI64 -extract\" > ");
+     strcat(pbiscript, "\n./PBI64 -extract' > ");
   } else {
-     strcat(pbiscript, "\n./PBI64 -32bitcompat\" > ");
+     strcat(pbiscript, "\n./PBI64 -32bitcompat' > ");
   }
 } else {
   // Check if the user prompted to only extract the files
   if ( extractmode == 1 ) {
-     strcat(pbiscript, "\n./PBI -extract\" > ");
+     strcat(pbiscript, "\n./PBI -extract' > ");
   } else {
-     strcat(pbiscript, "\n./PBI\" > ");
+     strcat(pbiscript, "\n./PBI' > ");
   }
 }
 strcat(pbiscript, pbitmpdir);
@@ -399,7 +399,7 @@
 /* If we are in text mode */
 
 char pbiscript[600];
-strcpy(pbiscript, "echo \"#!/bin/sh\n\
+strcpy(pbiscript, "echo '#!/bin/sh\n\
 LANG=`cat lang`; export LANG\n\
 LD_LIBRARY_PATH=/Programs/.libs8/ ; export LD_LIBRARY_PATH\n\
 cd ");
@@ -408,15 +408,15 @@
 if( run32mode )
 {
   if ( acceptlic == 0 ) {
-    strcat(pbiscript, "\n./PBItext64 -32bitcompat\n\" > ");
+    strcat(pbiscript, "\n./PBItext64 -32bitcompat\n' > ");
   } else {
-    strcat(pbiscript, "\n./PBItext64 -accept -32bitcompat\n\" > ");
+    strcat(pbiscript, "\n./PBItext64 -accept -32bitcompat\n' > ");
   }
 } else {
   if ( acceptlic == 0 ) {
-    strcat(pbiscript, "\n./PBItext\n\" > ");
+    strcat(pbiscript, "\n./PBItext\n' > ");
   } else {
-    strcat(pbiscript, "\n./PBItext -accept\n\" > ");
+    strcat(pbiscript, "\n./PBItext -accept\n' > ");
   }
 }
 strcat(pbiscript, pbitmpdir);



More information about the Commits mailing list