| Date: | 2010-10-05 10:09:41 (2 years 7 months ago) |
|---|---|
| Author: | Xiangfu Liu |
| Commit: | 2d8b6c2d9776025c2014bba974b1893c8a6ad67d |
| Message: | use the new version rules. add the get-orig-source.sh file Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
| Files: |
debian/get-orig-source.sh (1 diff) debian/rules (1 diff) |
Change Details
| debian/get-orig-source.sh | ||
|---|---|---|
| 1 | #!/bin/sh | |
| 2 | # Build a tarball from the latest upstream version, with a nice | |
| 3 | # version number. | |
| 4 | # | |
| 5 | # Requires git 1.6.6 or later, GNU date, and gzip. | |
| 6 | ||
| 7 | set -e | |
| 8 | ||
| 9 | trap 'rm -fr debian-orig-source || exit 1' EXIT INT TERM | |
| 10 | ||
| 11 | svn export -r${REV} http://svn.openmoko.org/trunk/eda/fped debian-orig-source | |
| 12 | ||
| 13 | # Determine version number. | |
| 14 | release=0.0 | |
| 15 | upstream_version="${release}+r${REV}" | |
| 16 | ||
| 17 | # Generate tarball. | |
| 18 | echo "packaging ..." | |
| 19 | tar -czf fped_$upstream_version.orig.tar.gz debian-orig-source | |
| debian/rules | ||
|---|---|---|
| 1 | 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- | |
| 3 | # Sample debian/rules that uses debhelper. | |
| 4 | # This file was originally written by Joey Hess and Craig Small. | |
| 5 | # As a special exception, when this file is copied by dh-make into a | |
| 6 | # dh-make output file, you may use that output file without restriction. | |
| 7 | # This special exception was added by Craig Small in version 0.37 of dh-make. | |
| 2 | 8 | |
| 3 | include /usr/share/cdbs/1/rules/debhelper.mk | |
| 4 | include /usr/share/cdbs/1/class/autotools.mk | |
| 9 | # Uncomment this to turn on verbose mode. | |
| 10 | #export DH_VERBOSE=1 | |
| 5 | 11 | |
| 6 | DEB_INSTALL_MANPAGES_dfu-util := doc/dfu-util.1 | |
| 7 | ||
| 8 | # We must first call ./autogen.sh to generate the autotools stuff. | |
| 9 | post-patches:: debian/stamp-autothings-update | |
| 10 | debian/stamp-autothings-update: | |
| 11 | @#aclocal | |
| 12 | @#autoheader | |
| 13 | @#automake --foreign --add-missing --copy | |
| 14 | @#autoconf | |
| 15 | ./autogen.sh | |
| 16 | touch $@ | |
| 17 | ||
| 18 | # Do not install the dfu-util_static binary, it's not needed in Debian. | |
| 19 | binary-post-install/dfu-util:: | |
| 20 | rm -f debian/dfu-util/usr/bin/dfu-util_static | |
| 21 | ||
| 22 | clean:: | |
| 23 | rm -f debian/stamp-autothings-update | |
| 24 | @# Delete generated files, we don't want them in the diff. | |
| 25 | rm -f aclocal.m4 config.h.in configure Makefile.in m4/install-sh | |
| 26 | rm -f m4/missing m4/depcomp src/Makefile.in src/dfu-version.h | |
| 12 | REV=5974 | |
| 13 | debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST)))) | |
| 14 | get-orig-source: | |
| 15 | REV='$(REV)' sh '$(debiandir_SQ)'get-orig-source.sh | |
| 27 | 16 | |
| 17 | %: | |
| 18 | dh $@ | |
Branches:
master
