#!/bin/sh # fixlinks -- fix the symlinks that Linux mkisofs broke in the # Darwin Open Systems OPEN LOOK, XView and NeWS CD-ROM (ed. note: # don't blame Linux entirely, blame inadequate final testing!). # if [ ! -f TOUR ]; then echo "This does not appear to be the root of the Darwin Open Systems OPEN LOOK and XView CD-ROM. Please cd there, and run me again." >&2 exit 1 fi nawk '{ badLink = $1 # existing bad link goodLink = $2 # what it should point to print "# Correcting link from", badLink, "to", goodLink print "rm", badLink # out with the old! n = split($1, bits, "/"); baseDir = "" for (i=1; i