diff options
author | jkh <jkh@FreeBSD.org> | 1994-06-15 10:33:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-06-15 10:33:49 +0000 |
commit | 39d03206f40bc17edf64478e714a90ec5cf87d84 (patch) | |
tree | ebd7444c47e9ee1459c854dda32dc1ac17897b8f /usr.sbin/crunch/crunchgen/mkskel.sh | |
download | FreeBSD-src-39d03206f40bc17edf64478e714a90ec5cf87d84.zip FreeBSD-src-39d03206f40bc17edf64478e714a90ec5cf87d84.tar.gz |
This is the new crunch utility for making distribution floppies from
James da Silva. We need to integrate this before 1.1.5 so that we can
actually make the boot floppies.
Diffstat (limited to 'usr.sbin/crunch/crunchgen/mkskel.sh')
-rw-r--r-- | usr.sbin/crunch/crunchgen/mkskel.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.sbin/crunch/crunchgen/mkskel.sh b/usr.sbin/crunch/crunchgen/mkskel.sh new file mode 100644 index 0000000..fd53d78 --- /dev/null +++ b/usr.sbin/crunch/crunchgen/mkskel.sh @@ -0,0 +1,15 @@ +#! /bin/sh +# idea and sed lines taken straight from flex + +cat <<!EOF +/* File created via mkskel.sh */ + +char *crunched_skel[] = { +!EOF + +sed 's/\\/&&/g' $* | sed 's/"/\\"/g' | sed 's/.*/ "&",/' + +cat <<!EOF + 0 +}; +!EOF |