1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-09-30 11:03:14 +03:00

use the new version rules.

add the get-orig-source.sh file

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-10-05 16:09:41 +08:00
parent e394af8c90
commit b17ed1a7df
2 changed files with 35 additions and 21 deletions

19
debian/get-orig-source.sh vendored Normal file
View File

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

37
debian/rules vendored
View File

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