]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
make_dist.sh: include src/.git_version and src/ceph_ver.h
authorSage Weil <sage@redhat.com>
Fri, 10 Jun 2016 20:47:32 +0000 (16:47 -0400)
committerSage Weil <sage@redhat.com>
Fri, 10 Jun 2016 20:47:32 +0000 (16:47 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
make_dist.sh

index 044ad8316ff606ef85c05f16414d57b483bf947b..89781034801fff4a34442ba06695e3335aeba961 100755 (executable)
@@ -22,7 +22,7 @@ fi
 
 # clean out old cruft...
 echo "cleanup..."
-rm -f $outfile.tar $outfile.tar.gz
+rm -f $outfile*
 
 # build new tarball
 echo "building tarball..."
@@ -30,6 +30,17 @@ bin/git-archive-all.sh --prefix ceph-$version/ \
                       --verbose \
                       --ignore corpus \
                       $outfile.tar
+
+echo "including src/.git_version and src/ceph_ver.h..."
+src/make_version -g src/.git_version -c src/ceph_ver.h
+ln -s . $outfile
+tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/src/ceph_ver.h
+tar --concatenate -f $outfile.both.tar $outfile.version.tar
+tar --concatenate -f $outfile.both.tar $outfile.tar
+mv $outfile.both.tar $outfile.tar
+rm $outfile
+rm -f $outfile.version.tar
+
 echo "compressing..."
 bzip2 -9 $outfile.tar