Added a make_release script
This commit is contained in:
parent
47d2251d84
commit
4ff6618faf
4
gpx2svg
4
gpx2svg
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (c) 2012-2015 Tobias Leupold <tobias.leupold@web.de>
|
||||
# Copyright (c) 2012-2018 Tobias Leupold <tobias.leupold@gmx.de>
|
||||
#
|
||||
# gpx2svg - Convert GPX formatted geodata to Scalable Vector Graphics (SVG)
|
||||
#
|
||||
|
@ -17,7 +17,7 @@
|
|||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
__version__ = '0.1.4'
|
||||
__version__ = '@VERSION@'
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Get the version we're releasing
|
||||
version=$(git describe)
|
||||
version=${version##*v}
|
||||
|
||||
# Create snapshot
|
||||
mkdir gpx2svg-$version
|
||||
git archive HEAD | tar -xC gpx2svg-$version
|
||||
cd gpx2svg-$version
|
||||
|
||||
# Update the project version
|
||||
sed -i -e "s/@VERSION@/$version/" gpx2svg
|
||||
|
||||
# Create the release tarball
|
||||
cd ..
|
||||
tar -cJf gpx2svg-$version.tar.xz gpx2svg-$version
|
||||
rm -r gpx2svg-$version
|
Loading…
Reference in New Issue