From bbdf670c0679ca1052f4c64c65cb15c2f134c58d Mon Sep 17 00:00:00 2001 From: lars Date: Thu, 28 Dec 2006 18:39:49 +0000 Subject: [PATCH] verstaendliche Fehlermeldung, falls "linkchecker", "validate" oder "tofrodos" fehlt --- Makefile | 29 ++++++++++++++++++++++++++--- ccd-infos/export_info.txt | 5 +++-- ccd-infos/policy_formatierung.lyx | 8 ++++---- documents/Makefile | 10 ++++++++++ 4 files changed, 43 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 5f488d8..de300b1 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,17 @@ dist-clean: clean linkcheck: doku kopiere_programme + @# check if the 'linkchecker' program is available + @if which linkchecker >/dev/null ;\ + then true ;\ + else echo >&2 ;\ + echo >&2 "**********************************************************" ;\ + echo >&2 "* Could not find 'linkchecker'! *" ;\ + echo >&2 "* Debian users should run 'apt-get install linkchecker'. *" ;\ + echo >&2 "**********************************************************";\ + echo >&2 ;\ + false ;\ + fi linkchecker -r 4 --ignore-url=^mailto: $(wildcard $(CCD_BUILD_DIR)/*.html) @@ -93,9 +104,21 @@ cd-template: verzeichnisstruktur else mkdir -p $(dir $(CCD_BUILD_DIR)) ;\ cp -r cd-template $(CCD_BUILD_DIR) ;\ fi - find $(CCD_BUILD_DIR) -type f -name \*.html -exec unix2dos '{}' \; - find $(CCD_BUILD_DIR) -type f -name \*.txt -exec unix2dos '{}' \; - find $(CCD_BUILD_DIR) -type f -name \*.css -exec unix2dos '{}' \; + @# check if the 'unix2dos' program is available + @if which unix2dos >/dev/null ;\ + then true ;\ + else echo >&2 ;\ + echo >&2 "*******************************************************" ;\ + echo >&2 "* Could not find 'unix2dos'! *" ;\ + echo >&2 "* Debian users should run 'apt-get install tofrodos'. *" ;\ + echo >&2 "*******************************************************";\ + echo >&2 ;\ + false ;\ + fi + @# use DOS linebreaks instead of unix-stylish ones - should be easy for everyone + @find $(CCD_BUILD_DIR) -type f -name \*.html -exec unix2dos '{}' \; + @find $(CCD_BUILD_DIR) -type f -name \*.txt -exec unix2dos '{}' \; + @find $(CCD_BUILD_DIR) -type f -name \*.css -exec unix2dos '{}' \; doku: cd-template diff --git a/ccd-infos/export_info.txt b/ccd-infos/export_info.txt index 69064f3..cccae3b 100644 --- a/ccd-infos/export_info.txt +++ b/ccd-infos/export_info.txt @@ -8,10 +8,10 @@ notwendige Programme: - mkisofs - zip/tar/bzip2 - subversion (nur fuer das Erstellen eines "source"-Pakets notwendig) -- link-checker +- linkchecker - wdg-html-validator - unix2dos (Debian: im Paket 'tofrodos' enthalten) - +- gpg (zum Verifizieren der heruntergeladenen Programme) ===== Export eines Releases ===== @@ -28,3 +28,4 @@ verwendest, musst du die Release-Nummer im Makefile per Hand setzen Dies ist detailliert und inklusive Formatierungs-Policy in ccd-infos/policy_formatierung.lyx erläutert. + diff --git a/ccd-infos/policy_formatierung.lyx b/ccd-infos/policy_formatierung.lyx index 6cfc6ce..21fc227 100644 --- a/ccd-infos/policy_formatierung.lyx +++ b/ccd-infos/policy_formatierung.lyx @@ -712,7 +712,7 @@ Links einf \end_layout \begin_layout Subsection -Ende: Der Fortschritssbalken (optional) +Ende: Der Fortschrittsbalken (optional) \end_layout \begin_layout Standard @@ -757,7 +757,7 @@ preview false \end_layout \begin_layout Section -Das Dokument speichern +Verzeichnisstruktur und Dateinamen \end_layout \begin_layout Standard @@ -781,11 +781,11 @@ Beim Speichern gilt folgendes (dies ist wichtig f \begin_layout Itemize Lege innerhalb eines der o.g. - Verzeichnisse ein neues Verzeichniss an, + Verzeichnisse ein neues Verzeichnis an, \end_layout \begin_layout Itemize -benenne dieses Verzeichnis genauso, wie du das Lyx-Dokument benennest, +das neue lyx-Dokument in diesem Verzeichnis sollte denselben Namen tragen, \end_layout \begin_layout Itemize diff --git a/documents/Makefile b/documents/Makefile index 714a962..858f3be 100644 --- a/documents/Makefile +++ b/documents/Makefile @@ -33,6 +33,16 @@ all: $(EXPORT_DIRS) # validate the html files validate: $(EXPORT_DIRS) + @if which $(VALIDATE_BIN) >/dev/null ;\ + then true ;\ + else echo >&2 ;\ + echo >&2 "*****************************************************************" ;\ + echo >&2 "* Could not find the html-checker '$(VALIDATE_BIN)'! *" ;\ + echo >&2 "* Debian users should run 'apt-get install wdg-html-validator'. *" ;\ + echo >&2 "*****************************************************************";\ + echo >&2 ;\ + false ;\ + fi @$(VALIDATE_BIN) $(shell find . -name *.html -type f)