From b17ed1a7df152b1a22a49c362006447b41e8fb82 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Tue, 5 Oct 2010 16:09:41 +0800 Subject: [PATCH] use the new version rules. add the get-orig-source.sh file Signed-off-by: Xiangfu Liu --- debian/get-orig-source.sh | 19 +++++++++++++++++++ debian/rules | 37 ++++++++++++++++--------------------- 2 files changed, 35 insertions(+), 21 deletions(-) create mode 100644 debian/get-orig-source.sh diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh new file mode 100644 index 0000000..93e9c8e --- /dev/null +++ b/debian/get-orig-source.sh @@ -0,0 +1,19 @@ +#!/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 diff --git a/debian/rules b/debian/rules index 57ff9ae..ba87f68 100755 --- a/debian/rules +++ b/debian/rules @@ -1,27 +1,22 @@ #!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/autotools.mk +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 -DEB_INSTALL_MANPAGES_dfu-util := doc/dfu-util.1 +export PREFIX=/usr -# We must first call ./autogen.sh to generate the autotools stuff. -post-patches:: debian/stamp-autothings-update -debian/stamp-autothings-update: - @#aclocal - @#autoheader - @#automake --foreign --add-missing --copy - @#autoconf - ./autogen.sh - touch $@ +REV=5974 +debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST)))) +get-orig-source: + REV='$(REV)' sh '$(debiandir_SQ)'get-orig-source.sh -# Do not install the dfu-util_static binary, it's not needed in Debian. -binary-post-install/dfu-util:: - rm -f debian/dfu-util/usr/bin/dfu-util_static - -clean:: - rm -f debian/stamp-autothings-update - @# Delete generated files, we don't want them in the diff. - rm -f aclocal.m4 config.h.in configure Makefile.in m4/install-sh - rm -f m4/missing m4/depcomp src/Makefile.in src/dfu-version.h +override_dh_auto_test: +%: + dh $@