Remove src/share/examples/FreeBSD_version which is not really useful on
[dragonfly.git] / share / examples / worm / makecdfs.sh
CommitLineData
984263bc
MD
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 $
6e285212 4# $DragonFly: src/share/examples/worm/Attic/makecdfs.sh,v 1.2 2003/06/17 04:36:58 dillon Exp $
984263bc
MD
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
13if [ "$1" = "-b" ]; then
14 bootable="-b floppies/boot.flp -c floppies/boot.catalog"
15 shift
16else
17 bootable=""
18fi
19
20if [ $# -lt 4 ]; then
21 echo "usage: $0 \"cd-title\" input-tree output-file \"copyright\""
22elif [ ! -d $2 ]; then
23 echo "$0: $2 is not a directory tree."
24else
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
30fi