summaryrefslogtreecommitdiffstats
path: root/thrift-compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'thrift-compile.sh')
-rwxr-xr-xthrift-compile.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/thrift-compile.sh b/thrift-compile.sh
index f7a6561..c47cc86 100755
--- a/thrift-compile.sh
+++ b/thrift-compile.sh
@@ -18,8 +18,8 @@ if thrift --gen java src/main/thrift/bwlp.thrift; then
bn=$(basename "$file")
if [ -e "src/main/java/org/openslx/bwlp/thrift/iface/$bn" ]; then
diff -q \
- <(sed -r 's/_i[0-9]+/_ix/g;s/_iter[0-9]+/_iterx/g;s/_elem[0-9]+/_elemx/g;s/_list[0-9]+/_listx/g;/@Generated/d' "$file") \
- <(sed -r 's/_i[0-9]+/_ix/g;s/_iter[0-9]+/_iterx/g;s/_elem[0-9]+/_elemx/g;s/_list[0-9]+/_listx/g;/@Generated/d' "src/main/java/org/openslx/bwlp/thrift/iface/$bn")
+ <(sed -r 's/_(i|iter|elem|list|map|key|val)[0-9]+/\1x/g;/@Generated/d' "$file") \
+ <(sed -r 's/_(i|iter|elem|list|map|key|val)[0-9]+/\1x/g;/@Generated/d' "src/main/java/org/openslx/bwlp/thrift/iface/$bn")
ret=$?
[ "$ret" = 0 ] && continue
fi