need to specicy tree to git archive
authorAndrew Tridgell <tridge@samba.org>
Fri, 9 May 2008 23:35:13 +0000 (09:35 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 9 May 2008 23:35:13 +0000 (09:35 +1000)
packaging/RPM/makerpms.sh

index 8554a5990596f7f2b4395f946dedb77b76062b98..7b5012a83a14c40e7290a9e82cbf0e4dfb23a400 100755 (executable)
@@ -32,7 +32,7 @@ SPECFILE="ctdb.spec"
 RPMBUILD="rpmbuild"
 
 echo -n "Creating ctdb-${VERSION}.tar.gz ... "
-git archive --prefix=ctdb-${VERSION} | gzip -9 --rsyncable > ${SRCDIR}/ctdb-${VERSION}.tar.gz
+git archive --prefix=ctdb-${VERSION}/ HEAD | gzip -9 --rsyncable > ${SRCDIR}/ctdb-${VERSION}.tar.gz
 echo "Done."
 if [ $? -ne 0 ]; then
         echo "Build failed!"