Pinetab-v: rope in config
This commit is contained in:
23
machines/ptv/pkgs-cross/discount/config-sed.c
Normal file
23
machines/ptv/pkgs-cross/discount/config-sed.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
char *p;
|
||||
|
||||
if (argc != 3)
|
||||
return 1;
|
||||
|
||||
printf("s;@%s@;", argv[1]);
|
||||
|
||||
for (p=argv[2]; *p; ++p) {
|
||||
if ( *p == ';' )
|
||||
putchar('\\');
|
||||
putchar(*p);
|
||||
}
|
||||
|
||||
puts(";g");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user