darling-gdb/ld/mkscript.c
Steve Chamberlain da56abdf49 Initial revision
1991-04-14 03:22:02 +00:00

21 lines
310 B
C

#include <stdio.h>
int
main()
{
int ch;
ch = getchar();
printf("/* Generated through mkscript */\n");
printf("\"SCRIPT \\\n");
while (ch != EOF) {
if (ch == '\n') {
putchar(' ');
putchar('\\');
}
putchar(ch);
ch = getchar();
}
printf("ENDSCRIPT\"\n");
return 0;
}