Date:2010-10-05 10:09:41 (13 years 5 months ago)
Author:Xiangfu Liu
Commit:a3b3ed4925927211fbb2a114cf183678bfc30346
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
7set -e
8
9trap 'rm -fr debian-orig-source || exit 1' EXIT INT TERM
10
11svn export -r${REV} http://svn.openmoko.org/trunk/eda/fped debian-orig-source
12
13# Determine version number.
14release=0.0
15upstream_version="${release}+r${REV}"
16
17# Generate tarball.
18echo "packaging ..."
19tar -czf fped_$upstream_version.orig.tar.gz debian-orig-source
debian/rules
11#!/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.
28
3include /usr/share/cdbs/1/rules/debhelper.mk
4include /usr/share/cdbs/1/class/autotools.mk
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
511
6DEB_INSTALL_MANPAGES_dfu-util := doc/dfu-util.1
7
8# We must first call ./autogen.sh to generate the autotools stuff.
9post-patches:: debian/stamp-autothings-update
10debian/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.
19binary-post-install/dfu-util::
20    rm -f debian/dfu-util/usr/bin/dfu-util_static
21
22clean::
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
12REV=5974
13debiandir_SQ = $(subst ','\'',$(dir $(lastword $(MAKEFILE_LIST))))
14get-orig-source:
15    REV='$(REV)' sh '$(debiandir_SQ)'get-orig-source.sh
2716
17%:
18    dh $@

Archive Download the corresponding diff file

Branches:
master



interactive