1
0
Fork 0

Added a make_release script

This commit is contained in:
Tobias Leupold 2018-07-22 15:56:30 +02:00
parent 47d2251d84
commit 4ff6618faf
2 changed files with 20 additions and 2 deletions

View File

@ -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

18
make_release Executable file
View File

@ -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