-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.sh
executable file
·33 lines (24 loc) · 1021 Bytes
/
data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
. ./release_config.sh
. ./release_util.sh
. ./config.sh
rm -rf data
git clone "${DATA_REPO}"
cd data
git checkout -b master --track origin/master
if ! git flow init -f -d; then exit; fi
if ! git flow release start $DATA_RELEASE; then exit; fi
if ! bumpversion --new-version="${DATA_RELEASE}" patch; then exit; fi
sed -itmp -e "s/MODEL_GENERATOR_VERSION=.*/MODEL_GENERATOR_VERSION=$MODEL_GENERATOR_RELEASE/" Makefile
sed -itmp -e "s/MINCER_VERSION=.*/MINCER_VERSION=$MINCER_RELEASE/" Makefile
if ! make data.mch; then exit; fi
git add Makefile
git commit -m "Update tool version numbers."
if ! git flow release finish; then exit; fi
sed -itmp -e "s/MODEL_GENERATOR_VERSION=.*/MODEL_GENERATOR_VERSION=$MODEL_GENERATOR_SNAPSHOT/" Makefile
sed -itmp -e "s/MINCER_VERSION=.*/MINCER_VERSION=$MINCER_SNAPSHOT/" Makefile
if ! make data.mch; then exit; fi
git add Makefile
git commit -m "Update tool version numbers to SNAPSHOT release."
if ! bumpversion --verbose minor; then exit; fi
push_confirmation "data"