Fixed cross-referencing upon installation
This commit is contained in:
parent
50da98bdd7
commit
9e5d429f0a
|
@ -86,7 +86,7 @@ if [ $# -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
|
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
|
||||||
instdir="$DATADIR/gtk-doc/html/$MODULE"
|
instdir="$DATADIR/gtk-doc/html"
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
target="$1"
|
target="$1"
|
||||||
|
@ -96,7 +96,8 @@ while [ $# -gt 0 ]; do
|
||||||
if [ "$uninstall" -eq 1 ]; then
|
if [ "$uninstall" -eq 1 ]; then
|
||||||
for i in gtkdoc/html/*.*; do
|
for i in gtkdoc/html/*.*; do
|
||||||
file="${i##*/}"
|
file="${i##*/}"
|
||||||
echo $DEBUG $RM "$instdir/$file" || exit 2
|
echo $DEBUG $RM "$instdir/$MODULE/$file" \
|
||||||
|
|| exit 2
|
||||||
done
|
done
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
@ -112,7 +113,7 @@ while [ $# -gt 0 ]; do
|
||||||
$DEBUG $GTKDOC_FIXXREF \
|
$DEBUG $GTKDOC_FIXXREF \
|
||||||
--module="$MODULE" \
|
--module="$MODULE" \
|
||||||
--module-dir="html" \
|
--module-dir="html" \
|
||||||
--html-dir="$DATADIR/doc/html/$MODULE")
|
--html-dir="$instdir")
|
||||||
;;
|
;;
|
||||||
gtkdoc/sgml.stamp)
|
gtkdoc/sgml.stamp)
|
||||||
(cd "gtkdoc" &&
|
(cd "gtkdoc" &&
|
||||||
|
@ -148,11 +149,12 @@ while [ $# -gt 0 ]; do
|
||||||
$TOUCH "$target"
|
$TOUCH "$target"
|
||||||
|
|
||||||
#install
|
#install
|
||||||
if [ "$install" -eq 1 -a -n "$instdir" ]; then
|
if [ "$install" -eq 1 ]; then
|
||||||
$DEBUG $MKDIR "$instdir" || exit 2
|
$DEBUG $MKDIR "$instdir/$MODULE" || exit 2
|
||||||
for i in gtkdoc/html/*.*; do
|
for i in gtkdoc/html/*.*; do
|
||||||
file="${i##*/}"
|
file="${i##*/}"
|
||||||
$DEBUG $INSTALL "$i" "$instdir/$file" || exit 2
|
$DEBUG $INSTALL "$i" "$instdir/$MODULE/$file" \
|
||||||
|
|| exit 2
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user