]> granicus.if.org Git - postgresql/commitdiff
Catch errors in for loop in makefile
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 1 May 2011 21:43:06 +0000 (00:43 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 1 May 2011 22:05:08 +0000 (01:05 +0300)
Add "|| exit" so that the rule aborts when a command fails.

src/pl/plpython/Makefile

index 93425cdb3450629a31a9175e18f1c34a6b713df6..2c0575501a488f918bb572c89f9012c2032dd31d 100644 (file)
@@ -138,7 +138,7 @@ prep3:
              -e "s/LANGUAGE plpython2u/LANGUAGE plpython3u/g" \
              -e "s/EXTENSION plpythonu/EXTENSION plpython3u/g" \
              -e "s/EXTENSION plpython2u/EXTENSION plpython3u/g" \
-           $$file >`echo $$file | sed 's,$(srcdir),python3,'`; \
+           $$file >`echo $$file | sed 's,$(srcdir),python3,'` || exit; \
        done
 
 clean3: