aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2014-06-18 12:07:20 -0700
committerGerald Combs <gerald@wireshark.org>2014-06-19 00:35:56 +0000
commit5a6366c9b56990eb7f4af17bf628ad80fc354ece (patch)
tree63a07fdc937992a2b4520fd9f3c4478c29b1ac2f /tools
parent85499fbbc682c36482e2053e66a642f5d581d356 (diff)
Generate xz compressed archives instead of .bz2-s
Change-Id: Iad47516ae617f5ecac5b03f2d7e800208c499d4a Reviewed-on: https://code.wireshark.org/review/2403 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/git-export-release.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/git-export-release.sh b/tools/git-export-release.sh
index 9e3aefe037..729c4703eb 100755
--- a/tools/git-export-release.sh
+++ b/tools/git-export-release.sh
@@ -22,12 +22,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-# first paremeter if set is a git commit, like v1.12.0-rc1 or 54819e5699f
-# by default HEAD is used
+# First paremeter, if set, is a git commit, like v1.12.0-rc1 or 54819e5699f
+# By default HEAD is used.
+# Note, that filtering takes place base on the _exported_ version's
+# .gitattributes files thus archives generated from older commits will contain
+# the whole tree.
COMMIT="HEAD"
if test -n "$1"; then
COMMIT="$1"
fi
VERSION=$(git describe --tags ${COMMIT} | sed 's/^v//')
-git archive --prefix=wireshark-${VERSION}/ ${COMMIT} | bzip2 > wireshark-${VERSION}.tar.bz2
+git archive --prefix=wireshark-${VERSION}/ ${COMMIT} | xz > wireshark-${VERSION}.tar.xz