File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # Copyright 2012 Dean Michael Berris <[email protected] >
4
+ # Copyright 2012 Google, Inc.
5
+ # Distributed under the Boost Software License, Version 1.0.
6
+ # (See accompanying file LICENSE_1_0.txt or copy at
7
+ # http://www.boost.org/LICENSE_1_0.txt)
8
+ #
9
+
10
+ VERSION=" $1 "
11
+ if [ " $VERSION " == " " ]; then
12
+ VERSION=" ` git log --format=oneline | awk ' {print $1}' | head -1` "
13
+ fi
14
+
15
+ TAG=" cpp-netlib-$VERSION "
16
+ git tag $TAG
17
+ echo " Tagged $TAG ."
18
+
19
+ git archive --prefix=cpp-netlib-$VERSION / --format=zip $TAG > cpp-netlib-$VERSION .zip
20
+ git archive --prefix=cpp-netlib-$VERSION / --format=tar $TAG | gzip > cpp-netlib-$VERSION .tar.gz
21
+ git archive --prefix=cpp-netlib-$VERSION / --format=tar $TAG | bzip2 > cpp-netlib-$VERSION .tar.bz2
22
+ echo " Packaged $TAG ."
You can’t perform that action at this time.
0 commit comments