$NetBSD$ The script does not seem to use bash-only features, it works with NetBSD's /bin/sh just fine. Whether this holds for Solaris /bin/sh remains to be seen :-). Introduce facility to specify GNU make under a different name than "make", eg. "MAKE=gmake ./make_dist". monit.1.in and monit.html.in need to be generated before the first run of "configure". Otherwise the script complains about their absence. --- make_dist.orig 2006-03-05 23:39:25.000000000 +0100 +++ make_dist @@ -1,7 +1,8 @@ -#!/bin/bash +#!/bin/sh # # Build the monit.tar.gz package # +: ${MAKE:=make} clean_up() { @@ -32,6 +33,11 @@ CONFIGURE_OBJS="Makefile config.cache co # Man-file objects MAN_OBJS="*.1" +./make_man # man files +# Create the monit man html file in doc +pod2html monit.pod > doc/monit.html.in +rm -f pod2* + # Create the Makefile ./autogen.sh @@ -40,22 +46,18 @@ MAN_OBJS="*.1" # ------------------------- #rm -f doc/api-docs/* #perl -pi.bak -e 's/address@hidden@/'$VERSION'/' doxygen.cfg -#make doc +#${MAKE} doc #mv doxygen.cfg.bak doxygen.cfg # Cleanup before build rm -f *.tar.gz -make devclean +${MAKE} devclean clean_up # Copy the specfile to allow direct rpmbuild -ta cp contrib/packages/redhat/monit.spec ./ perl -pi -e 's/^Version: .*/Version: '$VERSION'/' monit.spec -# Create the monit man html file in doc -pod2html monit.pod > doc/monit.html -rm -f pod2* - # Copy the the examples file to doc. lynx -dump -force-html -nolist web/doc/examples.php > doc/examples.html chmod 644 doc/examples.html @@ -69,9 +71,8 @@ chmod 755 install-sh # ------------- # Build package # ------------- -./make_man # man files ./autogen.sh # configure, config.h.in -make distclean # Keep only the relevant files +${MAKE} distclean # Keep only the relevant files # Build the dist file using current version in filename cd ..