From 9241dbf8e6ab036618d273eda6853d9e5fff1e97 Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Tue, 25 Oct 2011 23:28:40 +0200 Subject: [PATCH] additionnal grep_options protections --- utils/langbooks.sh | 5 +++++ utils/release.sh | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/utils/langbooks.sh b/utils/langbooks.sh index c002ad3b..4d90e93c 100755 --- a/utils/langbooks.sh +++ b/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" diff --git a/utils/release.sh b/utils/release.sh index 7b081223..f28919d6 100755 --- a/utils/release.sh +++ b/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/'`