nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/bash |
2 | # |
||
3 | # creates a release tarball directly from git |
||
4 | # |
||
5 | # Copyright 2011 Balint Reczey <balint@balintreczey.hu> |
||
6 | # |
||
7 | # Wireshark - Network traffic analyzer |
||
8 | # By Gerald Combs <gerald@wireshark.org> |
||
9 | # Copyright 1998 Gerald Combs |
||
10 | # |
||
11 | # This program is free software; you can redistribute it and/or |
||
12 | # modify it under the terms of the GNU General Public License |
||
13 | # as published by the Free Software Foundation; either version 2 |
||
14 | # of the License, or (at your option) any later version. |
||
15 | # |
||
16 | # This program is distributed in the hope that it will be useful, |
||
17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
19 | # GNU General Public License for more details. |
||
20 | # |
||
21 | # You should have received a copy of the GNU General Public License |
||
22 | # along with this program; if not, write to the Free Software |
||
23 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
24 | |||
25 | # First paremeter, if set, is a git commit, like v1.12.0-rc1 or 54819e5699f |
||
26 | # By default HEAD is used. |
||
27 | # Note, that filtering takes place base on the _exported_ version's |
||
28 | # .gitattributes files thus archives generated from older commits will contain |
||
29 | # the whole tree. |
||
30 | COMMIT="HEAD" |
||
31 | if test -n "$1"; then |
||
32 | COMMIT="$1" |
||
33 | fi |
||
34 | VERSION=$(git describe --tags ${COMMIT} | sed 's/^v//') |
||
35 | |||
36 | git archive --prefix=wireshark-${VERSION}/ ${COMMIT} | xz > wireshark-${VERSION}.tar.xz |