meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit d8863b762e866fbe312fc54ff18cdf924f1d0ca0
parent a60d4c097a3db746fd52f4cb51e7e777ad50b830
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  2 Oct 2017 16:00:25 +0200

Update the solstice script to handle the ABG section

Diffstat:
MMakefile | 14++++++++++++--
Msolstice.sh | 33++++++++++++++++++++++++++++++---
2 files changed, 42 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -14,6 +14,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. SOLSTICE-VERSION=0.6.1 +SOLSTICE-ABG=~/mesdocs/meso-star/solstice-docs/Solstice-ABG/ +REMOTE=OVH:www/solstice/ .PHONY: default default: all @@ -26,7 +28,7 @@ solstice: @tput bold @echo -e ">>> Generate Solstice web pages. Version: '$(SOLSTICE-VERSION)'" @tput sgr0 - @sh ./solstice.sh $(SOLSTICE-VERSION) + @sh ./solstice.sh $(SOLSTICE-VERSION) $(SOLSTICE-ABG) .PHONY: clean clean: @@ -35,4 +37,12 @@ clean: solstice.html \ solstice-downloads.html \ release_notes.html.in \ - downloads/*.sig + downloads/*.sig \ + downloads/Solstice-ABG.pdf \ + downloads/Solstice-ABG-rsrc.zip + +.PHONY: publish +publish: + rsync -avz solstice.html solstice-downloads.html meso.css themis.png $(REMOTE) + rsync -avz downloads/*.tar.gz downloads/*.zip downloads/*.sig downloads/Solstice-ABG* $(REMOTE)/downloads/ + rsync -avzr man $(REMOTE) diff --git a/solstice.sh b/solstice.sh @@ -20,8 +20,8 @@ set -e source ./solstice-menu.sh -if [ $# -lt 1 ]; then - echo "Usage: $0 VERSION" +if [ $# -lt 2 ]; then + echo "Usage: $0 VERSION SOLSTICE-ABG-PATH" exit 1 fi @@ -31,6 +31,10 @@ if [ ! -f "./downloads/Solstice-$1-GNU-Linux64.tar.gz" ]; then exit 1 fi +if [ ! -f "$2/guide0.6.tex" ]; then + echo "Cannot found the Latex sources of the Solstice ABG." + exit 1 +fi dir_curr=$(pwd) # Current directory dir_temp=$(mktemp -d) # Working directory @@ -47,9 +51,31 @@ fi set -e ################################################################################ +# Generate the Solstice-ABG +################################################################################ +if [ ! -f downloads/Solstice-ABG.pdf ]; then + ABG=guide0.6 + echo "Generate the Solstice Absolute Beginner's Guide" + cd $2 + { + pdflatex $ABG.tex; + bibtex $ABG; + pdflatex $ABG.tex; + pdflatex $ABG.tex; + } 1> /dev/null + cp $ABG.pdf $dir_curr/downloads/Solstice-ABG.pdf + cd $dir_curr +fi + +if [ ! -f downloads/Solstice-ABG-rsrc.zip ]; then + echo "Archve the resources of the Solstice Absolute Beginner's Guide" + zip -r downloads/Solstice-ABG-rsrc.zip $2/source_files/* +fi + +################################################################################ # Sign the package ################################################################################ -archs=$(find downloads/ -name "*.zip" -o -name "*.tar.gz" ) +archs=$(find downloads -regex "^.*/Solstice-[0-9]+\.[0-9]+\.[0-9]+-.*") for arch in $archs; do if [ ! -f $arch.sig ]; then echo "Sign $arch" @@ -90,6 +116,7 @@ echo "Write solstice-downloads.html" print_header Downloads; echo '<header><h1>Downloads</h1></header>'; print_downloads; + cat solstice-abg.html.in VERSION=$1 envsubst < pgp_signature.html.in; cat release_notes.html.in; print_footer;