diff --git a/distrib/sets/makeplist b/distrib/sets/makeplist index de4ce166416d..602f8387f3c3 100755 --- a/distrib/sets/makeplist +++ b/distrib/sets/makeplist @@ -1,33 +1,47 @@ #!/bin/sh # # Print out the files in some or all lists. -# Usage: makeplist [-a arch] [-m machine] [-s setsdir] [-p prefix] setname pkgname +# Usage: makeplist [options] setname pkgname +# options: +# -a arch set arch (e.g, m68k, mips, powerpc) +# -m machine set machine (e.g, amiga, i386, macppc) +# -s setsdir directory to find sets +# -p prefix prefix for package creation +# -I realprefix prefix for eventual installation +# setname pkgname set and package to build plist for # rundir="$(dirname "$0")" # ${0%/*} isn't good enough when there's no "/" . "${rundir}/sets.subr" prefix=/ +realprefix=/ +got_realprefix=false -usage() -{ +usage() { cat 1>&2 < "${ffilename}" cd - -echo "@cwd ${prefix}" +echo "@cwd ${realprefix}" if [ -s "${ffilename}" ]; then cat "${ffilename}" fi