forked from oracle/pgql-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
37 lines (30 loc) · 658 Bytes
/
deploy.sh
File metadata and controls
37 lines (30 loc) · 658 Bytes
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
34
35
36
37
#!/bin/bash
set -e
FILES="
graph-query-ir/pom.xml
pgql-lang/pom.xml
"
if [ $# -eq 0 ]
then
echo "ERROR: Please specify a version number, for example, 'bash deploy.sh 2017-01-01'."
exit
fi
if [ -f pgql-lang/src/main/resources/pgql-1.1.spoofax-language ]
then
echo "INFO: Using the parser that was previously built via 'bash install.sh'"
else
echo "ERROR: Run 'bash install.sh' first."
exit
fi
VERSION_A="1.1.0-SNAPSHOT"
VERSION_B="$1"
for f in $FILES
do
sed -i "s/$VERSION_A/$VERSION_B/g" $f
done
cd graph-query-ir/; mvn deploy; cd ../
cd pgql-lang/; mvn deploy; cd ../
for f in $FILES
do
sed -i "s/$VERSION_B/$VERSION_A/g" $f
done