[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

short test/prebuild script



I typically do a test build of any new package before writing or
updating a .spec file. Tired of invoking ./configure with all the
standard paths (/usr, /usr/share/man, ...), I devised this little
script.

It saves me from typing, and has the added benefit of identifying
if/where the package won't work and play well with the standard rpm
macros.

  #!/bin/sh
  # unpack tarball, eye-grep README &c., then...
  #
  # pass extra autoconf args via ARGS environment variable, e.g.,
  #
  # ARGS="--disable-nls" /path/to/this/script.sh

  BROOT="/var/tmp/$(basename $PWD)-root"
  eval "$(rpm --eval %configure) $ARGS"
  make  $(rpm --eval %_smp_mflags)
  eval "$(rpm --define "buildroot $BROOT" --eval %makeinstall)"

--Paul Heinlein <heinlein@cse.ogi.edu>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]