1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-04 04:42:30 +03:00
Files
mariadb-columnstore-engine/dbcon/dmlpackage/dml-scan.sh
2019-04-29 11:05:03 +03:00

15 lines
409 B
Bash
Executable File

#!/bin/sh
#dml-scan.cpp: dml.l
$1 -i -L -Pdml -odml-scan-temp.cpp dml.l
set +e; \
if [ -f dml-scan.cpp ]; \
then diff -abBq dml-scan-temp.cpp dml-scan.cpp >/dev/null 2>&1; \
if [ $? -ne 0 ]; \
then mv -f dml-scan-temp.cpp dml-scan.cpp; \
else touch dml-scan.cpp; \
fi; \
else mv -f dml-scan-temp.cpp dml-scan.cpp; \
fi
rm -f dml-scan-temp.cpp