Browse Source

additionnal grep_options protections

remotes/origin/cmake
Romain Goffe 13 years ago
parent
commit
9241dbf8e6
  1. 5
      utils/langbooks.sh
  2. 6
      utils/release.sh

5
utils/langbooks.sh

@ -10,6 +10,9 @@ then
exit 1
fi;
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
LANG=$1
BOOKS_DIR="books/"
@ -21,3 +24,5 @@ else
echo "Error: $LANG is not a supported language"
exit 2
fi;
export GREP_OPTIONS="$GREP"

6
utils/release.sh

@ -5,6 +5,9 @@
#Description: Build all the pdf on www.patacrep.com, increase their
#version and commit/tag the result
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
#volume-3.sb
./utils/volume-3.sh
#english.sb
@ -12,9 +15,6 @@
#french.sb
./utils/langbooks.sh french
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
#increase version
RELEASE_TYPE=$1
VERSION=`grep "\"version\"" ./templates/patacrep.tmpl | sed -e 's/.*\"\([0-9]\+\)\.\([0-9]\+\)\.\?\([0-9]\+\)\?.*/export MAIN=\1\nexport MAJOR=\2\nexport MINOR=\3\n/'`

Loading…
Cancel
Save