diff --git a/doc/docbook.sh b/doc/docbook.sh index 78c891b..977c34a 100755 --- a/doc/docbook.sh +++ b/doc/docbook.sh @@ -112,6 +112,13 @@ while [ $# -gt 0 ]; do continue fi + #install + if [ "$install" -eq 1 ]; then + $DEBUG $MKDIR -- "$instdir" || exit 2 + $DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2 + continue + fi + #create $DEBUG $XSLTPROC -o "$target" "$XSL" "$source" #XXX ignore errors @@ -120,10 +127,4 @@ while [ $# -gt 0 ]; do $RM -- "$target" break fi - - #install - if [ "$install" -eq 1 ]; then - $DEBUG $MKDIR -- "$instdir" || exit 2 - $DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2 - fi done