summaryrefslogtreecommitdiffstats
path: root/share/examples/worm/makecdfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/worm/makecdfs.sh')
-rwxr-xr-xshare/examples/worm/makecdfs.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/examples/worm/makecdfs.sh b/share/examples/worm/makecdfs.sh
new file mode 100755
index 0000000..f8315f2
--- /dev/null
+++ b/share/examples/worm/makecdfs.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# usage: makecdfs "cd title" input-tree output-file "copyright string"
+#
+# For example:
+#
+# makecdfs FreeBSD-2.1.5 /a/cdrom-dist /a/cdimage.cd0 "Walnut Creek CDROM \
+# 1-510-674-0783 FAX 1-510-674-0821"
+
+if [ $# -lt 4 ]; then
+ echo "usage: $0 \"cd-title\" input-tree output-file \"copyright\""
+elif [ ! -d $2 ]; then
+ echo "$0: $2 is not a directory tree."
+else
+ title="$1"; shift
+ tree=$1; shift
+ outfile=$1; shift
+ copyright="$1"
+ mkisofs -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree
+fi
OpenPOWER on IntegriCloud