14ef6d2b51
- splitting out the susemanager integration plugins into their own subpackages. ATM this only contains the zypp plugin to tell susemanager about manually installed packages. - Unit and integration tests fixes for 2016.3.2 Add: * 0018-Unit-tests-fixes-for-2016.3.2.patch * 0019-Fix-snapper_test-for-python26.patch * 0020-Integration-tests-fixes-for-2016.3.2.patch - Prevent pkg.install failure for expired keys (bsc#996455) Add: * 0017-Check-for-single-quote-before-splitting-on-single-qu.patch - Required D-Bus and generating machine ID where it is missing - Fix sphinx crashes when documentation is being generated Add script for documentation update. Add: * 0016-Improve-Mock-to-be-flexible-and-able-to-mock-methods.patch * update-documentation.sh - Fix pkg.installed refresh repo failure (bsc#993549) Fix salt.states.pkgrepo.management no change failure (bsc#990440) Add: * 0014-Add-ignore_repo_failure-option-to-suppress-zypper-s-.patch * 0015-Remove-zypper-s-raise-exception-if-mod_repo-has-no-a.patch - Deprecate status.uptime one version later Add: OBS-URL: https://build.opensuse.org/request/show/430691 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:saltstack/salt?expand=0&rev=77
65 lines
1.2 KiB
Bash
65 lines
1.2 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Update html.tar.bz2 documentation tarball
|
|
# Author: Bo Maryniuk <bo@suse.de>
|
|
#
|
|
|
|
function check_env() {
|
|
for cmd in "sphinx-build" "make" "quilt"; do
|
|
if [ -z "$(which $cmd 2>/dev/null)" ]; then
|
|
echo "Error: '$cmd' is missing."
|
|
exit 1;
|
|
fi
|
|
done
|
|
}
|
|
|
|
function quilt_setup() {
|
|
quilt setup salt.spec
|
|
cd $1
|
|
quilt push -a
|
|
}
|
|
|
|
function build_docs() {
|
|
cd $1
|
|
make html
|
|
rm _build/html/.buildinfo
|
|
cd _build/html
|
|
chmod -R -x+X *
|
|
cd ..
|
|
tar cvf - html | bzip2 > /tmp/html.tar.bz2
|
|
}
|
|
|
|
function write_changelog() {
|
|
mv salt.changes salt.changes.previous
|
|
TIME=$(date -u +'%a %b %d %T %Z %Y')
|
|
MAIL=$1
|
|
SEP="-------------------------------------------------------------------"
|
|
cat <<EOF > salt.changes
|
|
$SEP
|
|
$TIME - $MAIL
|
|
|
|
- Updated html.tar.bz2 documentation tarball.
|
|
|
|
EOF
|
|
cat salt.changes.previous >> salt.changes
|
|
rm salt.changes.previous
|
|
}
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <your e-mail>"
|
|
exit 1;
|
|
fi
|
|
|
|
check_env;
|
|
START=$(pwd)
|
|
SRC_DIR="salt-$(cat salt.spec | grep ^Version: | cut -d: -f2 | sed -e 's/[[:blank:]]//g')";
|
|
quilt_setup $SRC_DIR
|
|
build_docs doc
|
|
|
|
cd $START
|
|
rm -rf $SRC_DIR
|
|
mv /tmp/html.tar.bz2 $START
|
|
|
|
echo "Done"
|
|
echo "---------------"
|