|
@ -5,8 +5,6 @@ |
|
|
#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 |
|
|
|
|
|
|
|
|
export GREP_OPTIONS="" |
|
|
|
|
|
|
|
|
|
|
|
#volume-3.sb |
|
|
#volume-3.sb |
|
|
./utils/volume-3.sh |
|
|
./utils/volume-3.sh |
|
|
#english.sb |
|
|
#english.sb |
|
@ -14,6 +12,9 @@ export GREP_OPTIONS="" |
|
|
#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/'` |
|
@ -33,7 +34,7 @@ then |
|
|
echo "error: unrecognised release type" |
|
|
echo "error: unrecognised release type" |
|
|
fi; |
|
|
fi; |
|
|
echo "new version : $MAIN.$MAJOR.$MINOR" |
|
|
echo "new version : $MAIN.$MAJOR.$MINOR" |
|
|
#update version field in sb files |
|
|
#update version field in tmpl files |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep.tmpl |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep.tmpl |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/ancient.tmpl |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/ancient.tmpl |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep-en.tmpl |
|
|
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep-en.tmpl |
|
@ -75,4 +76,4 @@ then |
|
|
git tag "patacrep_$MAIN.$MAJOR.$MINOR" |
|
|
git tag "patacrep_$MAIN.$MAJOR.$MINOR" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
export GREP_OPTIONS="--exclude-dir=\*/.svn/\* --exclude=\*~ --binary-files=without-match --line-number" |
|
|
export GREP_OPTIONS="$GREP" |
|
|