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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue