- # Add here commands to install the package into debian/grml-live.
- cp -a etc debian/grml-live/
- cp -a examples debian/grml-live/usr/share/doc/grml-live/
- cp -a templates debian/grml-live/usr/share/grml-live/
- cp -a scripts debian/grml-live/usr/share/grml-live/
- cp -a patches debian/grml-live/usr/share/grml-live/
- cp -a buildd/*.sh debian/grml-live/usr/share/grml-live/buildd/
- install -o root -m 640 buildd/grml-buildd.conf debian/grml-live/etc/grml/grml-buildd.conf
- install -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs docs/grml-live.html
- dh_installexamples
- dh_installman docs/grml-live.8
- dh_link
- dh_strip
- dh_compress
- mkdir -p $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/
- cp -av debian/overrides $(CURDIR)/debian/grml-live/usr/share/lintian/overrides/grml-live
+override_dh_install:
+ grep -qE "GRML_LIVE_VERSION=.*UNRELEASED" grml-live || \
+ (echo "Wrong version in grml-live" && exit 2)
+ # build docs
+ cd docs && $(MAKE) && cd ../
+ # adjust version number inside grml-live executable
+ sed -i -e "s/GRML_LIVE_VERSION='\*\*\*UNRELEASED\*\*\*'/GRML_LIVE_VERSION='$(DEB_VERSION)'/" grml-live
+ find . -name grml-live.8
+ dh_install
+ # zsh completion
+ dh_install etc/zsh/completion.d/_grml-live usr/share/zsh/vendor-completions
+
+override_dh_fixperms: