mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Another attempt to make build_documentation.sh work in Linux
This commit is contained in:
parent
1a0a3d85ca
commit
abf3ee6563
1 changed files with 7 additions and 3 deletions
|
@ -55,12 +55,13 @@ done
|
||||||
# Make some extra stuff to pass to doxygen
|
# Make some extra stuff to pass to doxygen
|
||||||
# Input is kept as . because we cd to the input directory beforehand
|
# Input is kept as . because we cd to the input directory beforehand
|
||||||
# This prevents doxygen from generating "documentation" for intermediate directories
|
# This prevents doxygen from generating "documentation" for intermediate directories
|
||||||
read -d '' DOXYPARAMS <<EOF
|
DOXYPARAMS=$(cat <<EOF
|
||||||
PROJECT_NUMBER=2.0.0
|
PROJECT_NUMBER=2.0.0
|
||||||
INPUT=.
|
INPUT=.
|
||||||
OUTPUT_DIRECTORY=$OUTPUTDIR
|
OUTPUT_DIRECTORY=$OUTPUTDIR
|
||||||
QUIET=YES
|
QUIET=YES
|
||||||
EOF
|
EOF
|
||||||
|
);
|
||||||
|
|
||||||
# echo "$DOXYPARAMS"
|
# echo "$DOXYPARAMS"
|
||||||
|
|
||||||
|
@ -74,11 +75,14 @@ cd "$TMPLOC"
|
||||||
# Remember errors
|
# Remember errors
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
||||||
if test $RESULT == 0; then
|
cd "${OUTPUTDIR}/man/man1/"
|
||||||
|
if test "$RESULT" = 0 ; then
|
||||||
# Postprocess the files
|
# Postprocess the files
|
||||||
for i in "$FISHDIR"/doc_src/*.txt; do
|
for i in "$FISHDIR"/doc_src/*.txt; do
|
||||||
|
# It would be nice to use -i here for edit in place, but that is not portable
|
||||||
CMD_NAME=`basename "$i" .txt`;
|
CMD_NAME=`basename "$i" .txt`;
|
||||||
sed -i '' -e "s/\(.\)\\.SH/\1/" -e "s/$CMD_NAME *\\\\- *\"\(.*\)\"/\1/" "${OUTPUTDIR}/man/man1/${CMD_NAME}.1"
|
sed -e "s/\(.\)\\.SH/\1/" -e "s/$CMD_NAME *\\\\- *\"\(.*\)\"/\1/" "${CMD_NAME}.1" > "${CMD_NAME}.1.tmp"
|
||||||
|
mv "${CMD_NAME}.1.tmp" "${CMD_NAME}.1"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue