- # 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 remaster/grml-live-remaster debian/grml-live/usr/sbin/grml-live-remaster
- 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.
+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