Fixed non-portable shell syntax in tests. Added a dist-hook target to check
[pspp-builds.git] / tests / automake.mk
index ac9b415cce508a8b1a055831739c256a94deb8fe..1dd783238fe6011ff710c5c2460e29217640a606 100644 (file)
@@ -311,3 +311,8 @@ EXTRA_DIST += \
 
 CLEANFILES += *.save pspp.* foo*
 
+dist-hook:
+       @if grep -q 'export .*=' $(dist_TESTS) ; then \
+        echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
+        false ; \
+       fi