verstaendliche Fehlermeldung, falls "linkchecker", "validate" oder "tofrodos" fehlt
This commit is contained in:
parent
d600034e0a
commit
bbdf670c06
4 changed files with 43 additions and 9 deletions
29
Makefile
29
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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue