Merge from vendor branch GCC:
[dragonfly.git] / share / examples / worm / makecdfs.sh
1 #!/bin/sh
2 #
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 $
5 #
6 # usage: makecdfs "cd title" input-tree output-file "copyright string"
7 #
8 # For example:
9 #
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"
12
13 if [ "$1" = "-b" ]; then
14         bootable="-b floppies/boot.flp -c floppies/boot.catalog"
15         shift
16 else
17         bootable=""
18 fi
19
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
30 fi