mkisoimages.sh revision 80183
180183Sjkh#!/bin/sh 280183Sjkh# 380183Sjkh# Module: mkisoimages.sh 480183Sjkh# Author: Jordan K Hubbard 580183Sjkh# Date: 22 June 2001 680183Sjkh# 780183Sjkh# $FreeBSD: head/release/i386/mkisoimages.sh 80183 2001-07-23 09:01:46Z jkh $ 880183Sjkh# 980183Sjkh# This script is used by release/Makefile to build the (optional) ISO images 1080183Sjkh# for a FreeBSD release. It is considered architecture dependent since each 1180183Sjkh# platform has a slightly unique way of making bootable CDs. This script 1280183Sjkh# is also allowed to generate any number of images since that is more of 1380183Sjkh# publishing decision than anything else. 1480183Sjkh# 1580183Sjkh# Usage: 1680183Sjkh# 1780183Sjkh# mkisoimages.sh [-b] image-label image-name base-bits-dir [extra-bits-dir] 1880183Sjkh# 1980183Sjkh# Where -b is passed if the ISO image should be made "bootable" by 2080183Sjkh# whatever standards this architecture supports (may be unsupported), 2180183Sjkh# image-label is the ISO image label, image-name is the filename of the 2280183Sjkh# resulting ISO image, base-bits-dir contains the image contents and 2380183Sjkh# extra-bits-dir, if provided, contains additional files to be merged 2480183Sjkh# into base-bits-dir as part of making the image. 2580183Sjkh 2680183Sjkhif [ "x$1" = "x-b" ]; then 2780183Sjkh # This is highly x86-centric and will be used directly below. 2880183Sjkh bootable="-b floppies/boot.flp -c floppies/boot.catalog" 2980183Sjkh shift 3080183Sjkhelse 3180183Sjkh bootable="" 3280183Sjkhfi 3380183Sjkh 3480183Sjkhif [ $# -lt 3 ]; then 3580183Sjkh echo Usage: $0 '[-b] image-label image-name base-bits-dir [extra-bits-dir]' 3680183Sjkh exit 1 3780183Sjkhfi 3880183Sjkh 3980183Sjkhif [ ! -x /usr/local/bin/mkhybrid ]; then 4080183Sjkh echo The mkisofs port is not installed. Trying to get it now. 4180183Sjkh if ! pkg_add -r mkisofs; then 4280183Sjkh echo "Couldn't get it via pkg_add - please go install this" 4380183Sjkh echo "from the ports collection and run this script again." 4480183Sjkh exit 2 4580183Sjkh fi 4680183Sjkhfi 4780183Sjkh 4880183SjkhLABEL=$1; shift 4980183SjkhNAME=$1; shift 5080183Sjkh 5180183Sjkhmkhybrid $bootable -r -J -h -V $LABEL -o $NAME $* 52