diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:09 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179 (patch) | |
tree | d7facbbbf53b1a5bc0fa92f671f5b1e29a7e3200 /Makefile | |
parent | 7c68e6ebca01f64501453fa53941ac77b9c2c335 (diff) | |
download | live-build-97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179.zip live-build-97c3a13dcc9becf93cb7c2aa89ea3e00f06b9179.tar.gz |
Adding live-helper 1.0~a10-1.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 76 |
1 files changed, 44 insertions, 32 deletions
@@ -1,13 +1,18 @@ -#!/usr/bin/make -f +# Makefile -all: install +TRANSLATIONS="de" + +all: build test: - set -e; for SCRIPT in functions/* examples/*.sh helpers/* hooks/*; \ + set -e; for SCRIPT in functions/* examples/*/*.sh helpers/* hooks/*; \ do \ - sh -n $$SCRIPT || exit 1; \ + sh -n $$SCRIPT; \ done +build: + @echo "Nothing to build." + install: test # Installing executables mkdir -p $(DESTDIR)/usr/bin @@ -19,27 +24,29 @@ install: test # Installing documentation mkdir -p $(DESTDIR)/usr/share/doc/live-helper - cp -r COPYING doc/* $(DESTDIR)/usr/share/doc/live-helper + cp -r COPYING docs/* $(DESTDIR)/usr/share/doc/live-helper # Installing manpages - set -e; for MANPAGE in manpages/*.1.en; \ - do \ - install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \ - done - - set -e; for MANPAGE in manpages/*.7.en; \ + set -e; for MANPAGE in manpages/*.en.1; \ do \ - install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \ + install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en.1`.1; \ done - set -e; for MANPAGE in manpages/*.1.de; \ + set -e; for MANPAGE in manpages/*.en.7; \ do \ - install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \ + install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en.7`.7; \ done - set -e; for MANPAGE in manpages/*.7.de; \ + set -e; for TRANSLATIONS in $$TRANSLATIONS; \ do \ - install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \ + for MANPAGE in manpages/*.$$TRANSLATION.1; \ + do \ + install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/$$TRANSLATION/man1/`basename $$MANPAGE .$$TRANSLATION.1`.1; \ + done; \ + for MANPAGE in manpages/*.$$TRANSLATION.7; \ + do \ + install -D -m 0644 $$MANPAGE $(DESTDIR)/usr/share/man/$$TRANSLATION/man7/`basename $$MANPAGE .$$TRANSLATION.7`.7; \ + done; \ done uninstall: @@ -56,36 +63,41 @@ uninstall: rm -rf $(DESTDIR)/usr/share/doc/live-helper # Uninstalling manpages - set -e; for MANPAGE in manpages/*.1.en; \ + set -e; for MANPAGE in manpages/*.en.1; \ do \ - rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en`; \ + rm -f $(DESTDIR)/usr/share/man/man1/`basename $$MANPAGE .en.1`.1; \ done - set -e; for MANPAGE in manpages/*.7.en; \ + set -e; for MANPAGE in manpages/*.en.7; \ do \ - rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en`; \ + rm -f $(DESTDIR)/usr/share/man/man7/`basename $$MANPAGE .en.7`.7; \ done - set -e; for MANPAGE in manpages/*.1.de; \ + set -e; for TRANSLATIONS in $$TRANSLATIONS; \ do \ - rm -f $(DESTDIR)/usr/share/man/de/man1/`basename $$MANPAGE .de`; \ - done - - set -e; for MANPAGE in manpages/*.7.de; \ - do \ - rm -f $(DESTDIR)/usr/share/man/de/man7/`basename $$MANPAGE .de`; \ + for MANPAGE in manpages/*.$$TRANSLATION.1; \ + do \ + rm -f $(DESTDIR)/usr/share/man/$$TRANSLATION/man1/`basename $$MANPAGE .$$TRANSLATION.1`.1; \ + done; \ + for MANPAGE in manpages/*.$$TRANSLATION.7; \ + do \ + rm -f $(DESTDIR)/usr/share/man/$$TRANSLATION/man7/`basename $$MANPAGE .de.7`.7; \ + done; \ done update: - for MANPAGE in manpages/*.de manpages/*.en; \ + set -e; for MANPAGE in manpages/*.de.* manpages/*.en.*; \ do \ - sed -i -e 's/30.04.2007/07.05.2007/' \ - -e 's/2007\\-04\\-30/2007\\-05\\-07/' \ - -e 's/1.0~a8/1.0~a9/' \ + sed -i -e 's/2007\\-05\\-07/2007\\-05\\-14/' \ + -e 's/07.05.2007/14.05.2007/' \ + -e 's/1.0~a9/1.0~a10/' \ $$MANPAGE; \ done - sed -i -e 's/1.0~a8/1.0~a9/' functioins/common.sh + sed -i -e 's/1.0~a9/1.0~a10/' functions/common.sh + + sed -i -e 's/1.0~a9/1.0~a10/' examples/cron/etch.sh + sed -i -e 's/1.0~a9/1.0~a10/' examples/cron/etch+beryl.sh clean: |