1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-23 04:15:11 +02:00
fped/debian/get-orig-source.sh
Xiangfu Liu 069e82ffc4 use usual name for orig tarball top-level directory
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2011-03-25 08:42:36 +08:00

20 lines
442 B
Bash

#!/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}