chiark
/
gitweb
/
~ianmdlvl
/
developers-reference.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Updated PTS documentation.
[developers-reference.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index 5350ddc4c640eb40d12d7bc18c8d34c93c1b07d5..53b78a51d8f248351fcc8901b7f9885d5954b7a8 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-1,9
+1,5
@@
#!/usr/bin/make -f
# rules file for developers-reference
#!/usr/bin/make -f
# rules file for developers-reference
-#
-# I do not use debstd, debhelper, or any of that stuff.
-# I believe in stripped down rules files; nothing that is not required
-# I believe in readability through abstraction
package := developers-reference
package := developers-reference
@@
-24,8
+20,8
@@
make_directory := install -d -o root -g root -m 755
compress := gzip -9f
# version abstraction
compress := gzip -9f
# version abstraction
-DEB_VERSION := $(shell
LC_ALL=C dpkg-parsechangelog | grep '^Version: ' | sed 's/^Version: *//'
)
-DEB_DATE := $(shell dpkg-parsechangelog | sed -n 's/^Date: *//p')
+DEB_VERSION := $(shell
awk -F '[()]' '/^$(package)/{ print $$2; exit }' debian/changelog
)
+DEB_DATE := $(shell dpkg-parsechangelog
2>/dev/null
| sed -n 's/^Date: *//p')
# pretty-print the date; I wish this was dynamic like the top-level makefile but oh well
DATE_EN := $(shell LC_ALL=C date --date="$(DEB_DATE)" '+%d %B, %Y')
DATE_FR := $(shell LC_ALL=fr_FR date --date="$(DEB_DATE)" '+%d %B %Y')
# pretty-print the date; I wish this was dynamic like the top-level makefile but oh well
DATE_EN := $(shell LC_ALL=C date --date="$(DEB_DATE)" '+%d %B, %Y')
DATE_FR := $(shell LC_ALL=fr_FR date --date="$(DEB_DATE)" '+%d %B %Y')
@@
-83,10
+79,7
@@
binary-indep: test install
dh_installchangelogs -i
dh_compress -i
dh_fixperms -i
dh_installchangelogs -i
dh_compress -i
dh_fixperms -i
-# debian/tocsubstvars
-# be tricky about putting the TOC sections into the description of the package
-# perl -ne '/^\d+\.\s/ && print " $$_";' < developers-reference.txt \
-# >> $(prefix)/DEBIAN/control
+ debian/tocsubstvars -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i