aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-02-26 21:17:24 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-02-26 21:17:24 +0100
commitd4d75dc81cd291410371bd7c186eaf7db046261b (patch)
tree842eec320779460fe88e4e50edb51c59698c39d3 /data
parent2f8bd934860b135044c5122e3272f7cc41ba81e7 (diff)
downloadPROJ-d4d75dc81cd291410371bd7c186eaf7db046261b.tar.gz
PROJ-d4d75dc81cd291410371bd7c186eaf7db046261b.zip
data/Makefile.am: fix to avoid issue on Solaris
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 8234c034..7594fd8d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -56,6 +56,7 @@ install-data-local:
fi; \
done
+# head -c1 not handled on Solaris
proj.db: $(DATAPATH)/sql/*.sql
@echo "Make proj.db"
$(RM) proj.db
@@ -69,12 +70,15 @@ proj.db: $(DATAPATH)/sql/*.sql
$(RM) proj.db; \
exit 1; \
fi; \
+ echo "" | head -c1; \
+ if [ $$? -eq 0 ] ; then \
+ echo "Running foreign_key_check"; \
if [[ $$(echo "pragma foreign_key_check;" | sqlite3 proj.db | head -c1 | wc -c) -ne 0 ]]; then \
echo "Foreign key check failed"; \
$(RM) proj.db; \
exit 1; \
- fi
-
+ fi \
+ fi
# For out-of-tree builds, link all file of the source data dir to the generated data
check-local: