Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
salt.3514
update-documentation.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File update-documentation.sh of Package salt.3514
#!/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 osc addremove write_changelog $1 #osc commit -n echo "Done" echo "---------------"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor