From owner-freebsd-questions Wed Sep 27 12:15:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from thor.theseus.com (south.theseus.com [63.74.60.130]) by hub.freebsd.org (Postfix) with ESMTP id D03DF37B424 for ; Wed, 27 Sep 2000 12:14:15 -0700 (PDT) Received: from spanky.theseus.com (spanky.theseus.com [192.168.0.51]) by thor.theseus.com (8.9.3/8.9.3) with SMTP id PAA25118; Wed, 27 Sep 2000 15:05:12 -0400 From: Bryan -TheBS- Smith Reply-To: thebs@smithconcepts.com, thebs@theseus.com Organization: (Personal Contact Info) To: freebsd-questions@freebsd.org Subject: Re: cdrecord - WOW! <- mkhybrid tcsh script Date: Wed, 27 Sep 2000 14:54:07 -0400 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain Cc: elug-eluglist@elug.org, leaplist@lists.leap.cf.org MIME-Version: 1.0 Message-Id: <0009271505110N.28318@spanky.theseus.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Re: cdrecord - WOW! <- mkisofs tcsh script Bryan Smith wrote: > a complex UNIX tcsh script (with _full_error_checking_, i.e. > input files/directories). Let me know if you want a copy of > the later. On Wed, 27 Sep 2000, (various people) wrote: > Yes | Please | Cool | etc... Okay, the script is below. 4 things: 1. Does not make a bootable CD (but can be modified to do so -- in fact, I'll make a new script that takes an extra argument for doing so). 2. Uses mkhybrid instead of mkisofs. mkhybrid is just a patched version of mkisofs with Apple/Mac support. The script uses _limited_ Apple/Mac extensions (mainly just long filename support, as to not screw up other systems' capability to read it nor hog a lot of space). I believe all that needs to be removed from the option list is "-apple" (as well as the changing of the binary/path). 3. Does not run cdrecord (which would be more drive-specific). This is on purpose as I make it a script for my users to use to make ISO images (who may not have a CD burner). 4. I have used this script with tcsh on Linux, Solaris and FreeBSD (and shouldn't have a problem with any other UNIX). I'm planning to make a bash version so it will run nicely under Cygwin on Win32. -- TheBS #!/bin/tcsh -f # # /usr/local/bin/mkcd.tcsh # Make a CD-R ISO9660 Image with Mac/Windows/UNIX extensions # Written 2000May31 by Bryan J. Smith of Theseus Logic, Inc. # (on personal time) ########################################################## # CONSTANTS (please change for your site) ########################################################## set iso_dir="/home/temp/cdimages" set iso_pub="http://www.theseus.com -- Theseus logic, 3501 Quadrangle Blvd., Orlando, FL 32817" set iso_pre="`whoami`@theseus.com" set bin_path="/usr/local/bin/mkhybrid" set extra_opts="-apple" ########################################################## # SCRIPT ########################################################## # Help #========================================================= if ( $# < 2 || $1 == "--help" || $1 == "-?" || $1 == "-h" || $1 == "-H" ) then echo "" echo "Syntax:" echo " mkcd