Upload gtk-doc documentation if available
This commit is contained in:
parent
0f8df5b0d8
commit
82ca968263
|
@ -25,8 +25,11 @@
|
||||||
|
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
|
PREFIX="/usr/local"
|
||||||
GIT_BRANCH="master"
|
GIT_BRANCH="master"
|
||||||
GIT_REMOTE="https://git.defora.org"
|
GIT_REMOTE="https://git.defora.org"
|
||||||
|
DATADIR="$PREFIX/share"
|
||||||
|
MIRROR="doc:doc"
|
||||||
PROGNAME_GIT_DOC="deforaos-git-doc.sh"
|
PROGNAME_GIT_DOC="deforaos-git-doc.sh"
|
||||||
#executables
|
#executables
|
||||||
CONFIGURE="/usr/local/bin/configure"
|
CONFIGURE="/usr/local/bin/configure"
|
||||||
|
@ -35,6 +38,7 @@ GIT_CLONE="$GIT clone -q"
|
||||||
MAKE="make"
|
MAKE="make"
|
||||||
MKTEMP="mktemp"
|
MKTEMP="mktemp"
|
||||||
RM="/bin/rm -f"
|
RM="/bin/rm -f"
|
||||||
|
RSYNC="rsync -a"
|
||||||
|
|
||||||
|
|
||||||
#functions
|
#functions
|
||||||
|
@ -60,6 +64,11 @@ _git_tests()
|
||||||
$CONFIGURE &&
|
$CONFIGURE &&
|
||||||
cd doc &&
|
cd doc &&
|
||||||
$MAKE DESTDIR="$tmpdir/destdir" install)|| ret=2
|
$MAKE DESTDIR="$tmpdir/destdir" install)|| ret=2
|
||||||
|
#upload the documentation if relevant
|
||||||
|
if [ $ret -eq 0 -a -d "$tmpdir/destdir$DATADIR/gtk-doc" ]; then
|
||||||
|
$RSYNC "$tmpdir/destdir$DATADIR/gtk-doc" "$MIRROR" \
|
||||||
|
|| ret=2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#cleanup
|
#cleanup
|
||||||
$RM -r "$tmpdir"
|
$RM -r "$tmpdir"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user