Skip to content

Commit 1848140

Browse files
deanberrisglynos
authored andcommitted
We want to standardize the packaging across releases.
1 parent 52e7797 commit 1848140

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

package.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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."

0 commit comments

Comments
 (0)