]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- use rpm or rpmbuild depending on which rpm version is installed
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 4 Oct 2003 11:41:52 +0000 (11:41 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 4 Oct 2003 11:41:52 +0000 (11:41 +0000)
svn-id: @1409

Makefile.am

index 7c1686c224e16a2dbd2ac7c57b6f679886bc7c20..ad85cbf2907b094791173efe82c84ccdaf1f6497 100644 (file)
@@ -32,4 +32,5 @@ EXTRA_DIST = \
 # make rpms
 rpm: $(PACKAGE).spec
        $(MAKE) dist
-       rpm -ta --clean --rmsource $(PACKAGE)-$(VERSION).tar.gz
+       rpmbin=`LANG=C LC_ALL=C rpm -ta 2>&1 | grep -q "unknown option" && echo rpmbuild || echo rpm` ; \
+               $$rpmbin -ta --clean --rmsource $(PACKAGE)-$(VERSION).tar.gz
This page took 0.050841 seconds and 4 git commands to generate.