]> granicus.if.org Git - jq/commitdiff
fix rpm mv command when rpm stashes the package in a subdirectory
authorLee Thompson <thompson@dtosolutions.com>
Tue, 4 Dec 2012 22:29:01 +0000 (16:29 -0600)
committerLee Thompson <thompson@dtosolutions.com>
Tue, 4 Dec 2012 22:29:01 +0000 (16:29 -0600)
Makefile.am

index c05f55e50c26bb0ec44f9e7a5cc2043d4226255a..63fc5eab6c8bb90f2251b573d324cb5dfde6e531 100644 (file)
@@ -70,7 +70,7 @@ rpm: jq jq_test
        mkdir -p rpm/SOURCES rpm/BUILD rpm/BUILDROOT rpm/RPMS rpm/SPECS
        cp jq-$$(cat VERSION).tar.gz rpm/SOURCES/
        rpmbuild -tb --define "_topdir ${PWD}/rpm" --define "_prefix ${HOME}" --define "version $$(cat VERSION)" --define "release ${RELEASE}" rpm/SOURCES/jq-$$(cat VERSION).tar.gz
-       mv rpm/RPMS/* ./
+       find rpm/RPMS/ -name "*.rpm" -exec mv {} ./ \;
        rm -rf rpm
 
 dist-clean-local: