mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-27 21:43:06 +00:00
SCRIPTS: make publish-release try to launch make-releases-json
Now when publishing a release, if make-releases-json is usable at the same place, it will be called to regenerate the json index of available versions.
This commit is contained in:
parent
f1c6ccfc6a
commit
8e9f915f8f
@ -17,6 +17,7 @@ BRANCH=
|
|||||||
DEVEL=
|
DEVEL=
|
||||||
QUIET=
|
QUIET=
|
||||||
AUTO=
|
AUTO=
|
||||||
|
ARG0="$0"
|
||||||
NEW=
|
NEW=
|
||||||
DIR=
|
DIR=
|
||||||
DOC=( )
|
DOC=( )
|
||||||
@ -178,6 +179,11 @@ for i in "${DOC[@]}"; do
|
|||||||
$CMD_GZIP < "$TARGET_DIR/doc/${i#doc/}" > "$TARGET_DIR/doc/${i#doc/}.gz"
|
$CMD_GZIP < "$TARGET_DIR/doc/${i#doc/}" > "$TARGET_DIR/doc/${i#doc/}.gz"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -x "${ARG0%/*}/make-releases-json" ]; then
|
||||||
|
# regenerate versions
|
||||||
|
"${ARG0%/*}/make-releases-json" -o "$TARGET_DIR/src/releases.json" "$TARGET_DIR"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done : ls -l ${TARGET_DIR}"
|
echo "Done : ls -l ${TARGET_DIR}"
|
||||||
( cd "$TARGET_DIR" ;
|
( cd "$TARGET_DIR" ;
|
||||||
ls -l src/CHANGELOG "src${DEVEL}/haproxy-${NEW}".tar.gz{,.md5,.sha256} $(for i in "${DOC[@]}"; do echo "doc/${i#doc/}"{,.gz}; done)
|
ls -l src/CHANGELOG "src${DEVEL}/haproxy-${NEW}".tar.gz{,.md5,.sha256} $(for i in "${DOC[@]}"; do echo "doc/${i#doc/}"{,.gz}; done)
|
||||||
|
Loading…
Reference in New Issue
Block a user