aboutsummaryrefslogtreecommitdiff
path: root/ld/mkscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/mkscript.c')
-rw-r--r--ld/mkscript.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ld/mkscript.c b/ld/mkscript.c
index 5edda63..59a8e87 100644
--- a/ld/mkscript.c
+++ b/ld/mkscript.c
@@ -6,15 +6,20 @@ main()
int ch;
ch = getchar();
printf("/* Generated through mkscript */\n");
- printf("\"SCRIPT \\\n");
+ printf("\"{ \\\n");
while (ch != EOF) {
- if (ch == '\n') {
+ if (ch == '\"') {
+ putchar('\\');
+ putchar('\"');
+ }
+else { if (ch == '\n') {
putchar(' ');
putchar('\\');
}
putchar(ch);
+ }
ch = getchar();
}
- printf("ENDSCRIPT\"\n");
+ printf("}\"\n");
return 0;
}