forked from osmocom/wireshark
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>
This commit is contained in:
parent
85499fbbc6
commit
5a6366c9b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue