Commit 8500958b authored by guiu.rocafort.ferrer's avatar guiu.rocafort.ferrer

Issue #3086993 by guiu.rocafort.ferrer: Allow to build subset of languages from console

parent 01d50888
#!/usr/bin/env bash
# This script builds all the mk scripts for the different types of docs.
# Usage: ./mkall.sh version [ lang1 lang2 lang3 ]
# Example: ./mkall.sh 8.x-7.1 es ca de
# Exit immediately on uninitialized variable or error, and print each command.
set -uex
if [[ $# -lt 1 ]]; then
echo "You must specify at least one parameter indicating the version"
echo "# Usage: ./mkall.sh version [ lang1 lang2 lang3 ]"
echo "# Example: ./mkall.sh 8.x-7.1 es ca de"
exit -1
fi
if [[ $# -gt 1 ]]; then
echo "Building specified languages in parameters"
langs=${@:2} # This gets all the parameters except the first one ( version )
else
echo "Building all languages in languages.txt"
langs="$(cat ../scripts/languages.txt)"
fi
./mkoutput.sh $langs
./mkfeeds.sh $langs
./mkebooks.sh $langs
./mkzips.sh $1 $langs
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment