This commit sets new users to see the DragonFly-tips fortunes instead
[dragonfly.git] / share / examples / worm / makecdfs.sh
blob5a2f88063fee5ebd173cc01aa1db6fbc4d231ac7
1 #!/bin/sh
3 # $FreeBSD: src/share/examples/worm/makecdfs.sh,v 1.4.6.1 2000/05/25 20:16:09 dirk Exp $
4 # $DragonFly: src/share/examples/worm/Attic/makecdfs.sh,v 1.2 2003/06/17 04:36:58 dillon Exp $
6 # usage: makecdfs "cd title" input-tree output-file "copyright string"
8 # For example:
10 # makecdfs FreeBSD-2.1.5 /a/cdrom-dist /a/cdimage.cd0 "Walnut Creek CDROM \
11 # 1-510-674-0783 FAX 1-510-674-0821"
13 if [ "$1" = "-b" ]; then
14 bootable="-b floppies/boot.flp -c floppies/boot.catalog"
15 shift
16 else
17 bootable=""
20 if [ $# -lt 4 ]; then
21 echo "usage: $0 \"cd-title\" input-tree output-file \"copyright\""
22 elif [ ! -d $2 ]; then
23 echo "$0: $2 is not a directory tree."
24 else
25 title="$1"; shift
26 tree=$1; shift
27 outfile=$1; shift
28 copyright="$*"
29 mkisofs $bootable -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree