aboutsummaryrefslogtreecommitdiff
path: root/ld/mkscript.c
blob: 5edda63ba8f3f2bccb1c6525401a6123aaf0fd40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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;
}