1
1

* doc-gnome/C/mkhtml: Print a big warning if the script fails.

* doc-gnome/C/Makefile.am: Ignore exit status of mkhtml.
Этот коммит содержится в:
Pavel Roskin 2001-05-21 15:53:43 +00:00
родитель bb89abd7b4
Коммит 6aaa644446
3 изменённых файлов: 29 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2001-05-21 Pavel Roskin <proski@gnu.org>
* doc-gnome/C/mkhtml: Print a big warning if the script fails.
* doc-gnome/C/Makefile.am: Ignore exit status of mkhtml.
2001-05-20 Pavel Roskin <proski@gnu.org>
* doc-gnome/C/Makefile.am: Distribute mkhtml and genindex.sgml.

Просмотреть файл

@ -15,7 +15,7 @@ CLEANFILES = gmc.dvi gmc.ps gmc.pdf gmc.rtf
DISTCLEANFILES = gmc.sgm
$(srcdir)/index.html: @MAINT@ $(SGML_FILES)
@MAINT@ cd $(srcdir) && $(SHELL) $(srcdir)/mkhtml
@MAINT@ -cd $(srcdir) && $(SHELL) $(srcdir)/mkhtml
dist-hook: $(srcdir)/index.html
cp $(srcdir)/*.html $(distdir)

Просмотреть файл

@ -7,6 +7,29 @@
# Exit on errors.
set -e
# Big fat warning in case we need it
WARNING='
Could not generate GMC documentation.
Due to installations of DocBook being very different across platforms
and distributions, this "mkhtml" script has been designed to run on
RedHat Linux 7.1 only. You may want to adopt it to your system if you
have DocBook 4.1 installed.
Please DO NOT make official releases of GNU Midnight Commander on the
systems where the GMC documentation fails to be generated.
'
# Trap if something goes wrong
for signal in 0 1 2 13 15; do
trap 'status=$?
set +e
trap 0
test $status = 0 || echo "$WARNING"
exit $status' $signal
done
# Some cleanup
rm -rf gmc gmc.junk