To help you get started, I've included an example of a debian/rules file
that uses debhelper commands extensivly. See
-/usr/doc/debhelper/examples/rules .
+/usr/doc/debhelper/examples/rules . These files are also useful as they give
+one good order you can run the different debhelper scripts in (though other
+variations are possible).
Automatic generation of debian install scripts:
----------------------------------------------
+debhelper (0.7) unstable; urgency=low
+
+ * Sped up some things by removing unnecesary for loops.
+ * dh_installdocs: behavior modifcation: if there is a debian/TODO, it is
+ named like a debian/changelog file: if the package is a debian native
+ package, it is installed as TODO. If the package is not a native package,
+ it is installed as TODO.Debian.
+ * dh_installdocs: handle debian/README.Debian as well as
+ debian/README.debian.
+ * Added dh_undocumented program, which can set up undocumented.7 symlinks.
+ * Moved dh_installdebfiles to come after dh_fixperms in the example rules
+ files. (dh_installdebfiles makes sure it installs things with the proper
+ permissions, and this reorganization makes the file a bit more flexable
+ in a few situations.)
+
+ -- Joey Hess <joeyh@master.debian.org> Mon, 13 Oct 1997 20:08:05 -0400
+
debhelper (0.6) unstable; urgency=low
* Got rid of bashisms - this package should work now if /bin/sh is ash.
./dh_compress
./dh_installdebfiles
./dh_fixperms
+ ./dh_md5sums
./dh_builddeb
binary: binary-indep binary-arch
fi
if [ "$docs" ]; then
- for file in $docs; do
- doit "cp -a $file debian/$TMP/usr/doc/$PACKAGE/"
- done
+ doit "cp -a $docs debian/$TMP/usr/doc/$PACKAGE/"
fi
# Install these files only into the main package by default.
if [ "$PACKAGE" = "$MAINPACKAGE" ]; then
- for file in README.debian TODO ; do
- if [ -f debian/$file ]; then
- doit "install -m 644 -p debian/$file debian/$TMP/usr/doc/$PACKAGE/"
+ if [ -f debian/README.debian ]; then
+ doit "install -m 644 -p debian/README.debian debian/$TMP/usr/doc/$PACKAGE/"
+ fi
+ if [ -f debian/README.Debian ]; then
+ doit "install -m 644 -p debian/README.Debian debian/$TMP/usr/doc/$PACKAGE/"
+ fi
+ if [ -f debian/TODO ]; then
+ if [ "$NATIVE" ]; then
+ doit "install -m 655 -p debian/TODO debian/$TMP/usr/doc/$PACKAGE/TODO"
+ else
+ doit "install -m 644 -p debian/TODO debian/$TMP/usr/doc/$PACKAGE/TODO.Debian"
fi
- done
+ fi
fi
if [ -f debian/copyright ]; then
doit "install -d debian/$TMP/usr/doc/$PACKAGE/examples"
fi
- for file in $examples; do
- doit "cp -a $file debian/$TMP/usr/doc/$PACKAGE/examples/"
- done
+ doit "cp -a $examples debian/$TMP/usr/doc/$PACKAGE/examples/"
fi
done
dh_installmenu
dh_installcron
dh_installmanpages
+# dh_undocumented
dh_installchangelogs
dh_strip
dh_compress
- dh_installdebfiles
dh_fixperms
+ dh_installdebfiles
dh_builddeb
binary: binary-indep binary-arch
dh_installmenu -i
dh_installcron -i
# dh_installmanpages -i
+# dh_undocumented
dh_installchangelogs -i
dh_compress -i
- dh_installdebfiles -i
dh_fixperms -i
+ dh_installdebfiles -i
dh_builddeb -i
# Build architecture-dependent files here.
dh_installmenu -a
dh_installcron -a
dh_installmanpages -a
+# dh_undocumented
dh_installchangelogs -a
dh_strip -a
dh_compress -a
- dh_installdebfiles -a
dh_fixperms -a
+ dh_installdebfiles -a
dh_builddeb -a
binary: binary-indep binary-arch