Given the discussion about default options changing, I'm attaching a perl
script that I use to generate the ~/.openpkg/build file used by ``openpkg
build'' command, and may also be used to generate the --defines for
building a package manually.

To generate a list of all the ``-D'' options for the build file (this
doesn't generate the -r or other options):

        rpmgetopts.pl > newbuild

To generate the defines for a package build.  I will normally edit the file
adding an ``openpkg rpm "$@" '' at the top and the specfile name at the
bottom so I can use the ``-bp'', ``-ba'' arguments to build within a
package's SRC/packagename directory.

        rpmgetopts.pl -d packagename > build.sh

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Systems, Inc.
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``If the personal freedoms guaranteed by the Constitution inhibit the
government's ability to govern the people, we should look to limit those
guarantees.''
   -President Bill Clinton, August 12, 1993

Attachment: rpmgetopts.pl
Description: Perl program

Reply via email to