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 exit 1
fi; fi;
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
LANG=$1 LANG=$1
BOOKS_DIR="books/" BOOKS_DIR="books/"
@ -21,3 +24,5 @@ else
echo "Error: $LANG is not a supported language" echo "Error: $LANG is not a supported language"
exit 2 exit 2
fi; fi;
export GREP_OPTIONS="$GREP"

6
utils/release.sh

@ -5,6 +5,9 @@
#Description: Build all the pdf on www.patacrep.com, increase their #Description: Build all the pdf on www.patacrep.com, increase their
#version and commit/tag the result #version and commit/tag the result
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
#volume-3.sb #volume-3.sb
./utils/volume-3.sh ./utils/volume-3.sh
#english.sb #english.sb
@ -12,9 +15,6 @@
#french.sb #french.sb
./utils/langbooks.sh french ./utils/langbooks.sh french
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
#increase version #increase version
RELEASE_TYPE=$1 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/'` 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