diff options
| author | Peter Eisentraut | 2011-11-29 04:39:05 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2011-11-29 04:39:05 +0000 |
| commit | 04e5cb629b5c46462eee334f68d5ea12bc9097e0 (patch) | |
| tree | 25da416fd6ec28da61635e2d440713e6bab14f30 /src/pl | |
| parent | cc534f8b3c8939bb1086036da0cc4bb6c8b7b964 (diff) | |
plpython: Fix sed expression in python3 build
The old expression sed 's,$(srcdir),python3,' would normally resolve
as sed 's,.,python3,', which is not really what we wanted. While it
doesn't actually break anything right now, it's still wrong, so put in
a bit more work to make it more robust.
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpython/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index df07fc2ced..1b1259feef 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -131,7 +131,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,'` || exit; \ + $$file >`echo $$file | sed 's,^.*\(/[^/][^/]*/[^/][^/]*\)$$,python3\1,'` || exit; \ done clean3: |
