1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-23 08:12:25 +02:00
fped/debian/get-orig-source.sh

20 lines
442 B
Bash
Raw Normal View History

#!/bin/sh
# Build a tarball from the latest upstream version, with a nice
# version number.
set -e
# Determine version number.
release=0.0
upstream_version="${release}+r${REV}"
TOPFOLDER=fped-$upstream_version.orig
trap 'rm -fr ${TOPFOLDER} || exit 1' EXIT INT TERM
svn export -r${REV} http://svn.openmoko.org/trunk/eda/fped ${TOPFOLDER}
# Generate tarball.
echo "packaging ..."
tar -czf fped_$upstream_version.orig.tar.gz ${TOPFOLDER}