debian/rules
author Paul Crowley <paul@lshift.net>
Tue, 13 Oct 2009 18:21:22 +0100
branchdebian
changeset 116 d99f3169828a
parent 99 e99262dfa950
child 172 5dd3698fad54
permissions -rwxr-xr-x
Looks like the start of a working Debianization
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     1
#!/usr/bin/make -f
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     2
# -*- makefile -*-
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     3
# Sample debian/rules that uses debhelper.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     4
# This file was originally written by Joey Hess and Craig Small.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     5
# As a special exception, when this file is copied by dh-make into a
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     6
# dh-make output file, you may use that output file without restriction.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     7
# This special exception was added by Craig Small in version 0.37 of dh-make.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     8
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     9
# Uncomment this to turn on verbose mode.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    10
#export DH_VERBOSE=1
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    11
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    12
configure: configure-stamp
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    13
configure-stamp:
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    14
	dh_testdir
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    15
	# Add here commands to configure the package.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    16
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    17
	touch configure-stamp
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    18
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    19
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    20
build: build-stamp
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    21
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    22
build-stamp: configure-stamp  
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    23
	dh_testdir
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    24
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    25
	# Add here commands to compile the package.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    26
	#docbook-to-man debian/mercurial-server.sgml > mercurial-server.1
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    27
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    28
	touch $@
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    29
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    30
clean: 
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    31
	dh_testdir
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    32
	dh_testroot
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    33
	rm -f build-stamp configure-stamp
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    34
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    35
	# Add here commands to clean up after the build process.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    36
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    37
	dh_clean 
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    38
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    39
install: build
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    40
	dh_testdir
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    41
	dh_testroot
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    42
	dh_clean -k 
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    43
	dh_installdirs
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    44
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    45
	# Add here commands to install the package into debian/mercurial-server.
116
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    46
	cp \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    47
	    src/hg-ssh \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    48
	    src/refresh-auth \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    49
	    debian/mercurial-server/usr/share/mercurial-server
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    50
	cp \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    51
	    src/mercurialserver/__init__.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    52
	    src/mercurialserver/paths.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    53
	    src/mercurialserver/changes.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    54
	    src/mercurialserver/access.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    55
	    src/mercurialserver/servelog.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    56
	    src/mercurialserver/refreshauth.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    57
	    src/mercurialserver/ruleset.py \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    58
	    debian/mercurial-server/usr/share/mercurial-server/mercurialserver
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    59
	cp \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    60
	    src/init/hginit \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    61
	    src/init/hgadmin-hgrc \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    62
	    debian/mercurial-server/usr/share/mercurial-server/init
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    63
	cp \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    64
	    src/init/conf/remote-hgrc \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    65
	    src/init/conf/access.conf \
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    66
	    debian/mercurial-server/etc/mercurial-server
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    67
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    68
# Build architecture-independent files here.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    69
binary-indep: build install
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    70
# We have nothing to do by default.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    71
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    72
# Build architecture-dependent files here.
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    73
binary-arch: build install
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    74
	dh_testdir
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    75
	dh_testroot
116
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    76
#	dh_installchangelogs 
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    77
	dh_installdocs
116
d99f3169828a Looks like the start of a working Debianization
Paul Crowley <paul@lshift.net>
parents: 99
diff changeset
    78
#	dh_installexamples
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    79
#	dh_install
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    80
#	dh_installmenu
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    81
#	dh_installdebconf	
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    82
#	dh_installlogrotate
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    83
#	dh_installemacsen
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    84
#	dh_installpam
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    85
#	dh_installmime
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    86
#	dh_python
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    87
#	dh_installinit
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    88
#	dh_installcron
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    89
#	dh_installinfo
99
e99262dfa950 Don't know if I'm making progress here
Paul Crowley <paul@lshift.net>
parents: 97
diff changeset
    90
#	dh_installman
e99262dfa950 Don't know if I'm making progress here
Paul Crowley <paul@lshift.net>
parents: 97
diff changeset
    91
#	dh_link
e99262dfa950 Don't know if I'm making progress here
Paul Crowley <paul@lshift.net>
parents: 97
diff changeset
    92
#	dh_strip
e99262dfa950 Don't know if I'm making progress here
Paul Crowley <paul@lshift.net>
parents: 97
diff changeset
    93
#	dh_compress
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    94
	dh_fixperms
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    95
#	dh_perl
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    96
#	dh_makeshlibs
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    97
	dh_installdeb
99
e99262dfa950 Don't know if I'm making progress here
Paul Crowley <paul@lshift.net>
parents: 97
diff changeset
    98
#	dh_shlibdeps
97
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    99
	dh_gencontrol
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
   100
	dh_md5sums
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
   101
	dh_builddeb
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
   102
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
   103
binary: binary-indep binary-arch
7953788881a4 Start work on Debianization
Paul Crowley <paul@lshift.net>
parents:
diff changeset
   104
.PHONY: build clean binary-indep binary-arch binary install configure