1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-18 09:35:20 +02:00
fped/debian/get-orig-source.sh
Xiangfu Liu b17ed1a7df use the new version rules.
add the get-orig-source.sh file

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00

20 lines
474 B
Bash

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