release: use olsrd-version prefix for files in the tarballs
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 11 Feb 2013 16:10:23 +0000 (17:10 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 19 Apr 2013 08:49:34 +0000 (10:49 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
release/release.bash

index a492e7a..01746a3 100755 (executable)
@@ -673,7 +673,7 @@ EOF
   declare tarFile="${scriptDir}/olsrd-${relBranchVersionDigits}.tar"
   declare tarGzFile="${tarFile}.gz"
   declare tarBz2File="${tarFile}.bz2"
-  git archive --format=tar --output="${tarFile}" "${relTagVersion}"
+  git archive --format=tar --prefix="olsrd-${relBranchVersionDigits}/" --output="${tarFile}" "${relTagVersion}"
   gzip   -c "${tarFile}" > "${tarGzFile}"
   bzip2  -c "${tarFile}" > "${tarBz2File}"
   rm -f "${tarFile}"