Skip to content

Commit 04e5cb6

Browse files
committed
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.
1 parent cc534f8 commit 04e5cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl/plpython/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ prep3:
131131
-e "s/LANGUAGE plpython2u/LANGUAGE plpython3u/g" \
132132
-e "s/EXTENSION plpythonu/EXTENSION plpython3u/g" \
133133
-e "s/EXTENSION plpython2u/EXTENSION plpython3u/g" \
134-
$$file >`echo $$file | sed 's,$(srcdir),python3,'` || exit; \
134+
$$file >`echo $$file | sed 's,^.*\(/[^/][^/]*/[^/][^/]*\)$$,python3\1,'` || exit; \
135135
done
136136

137137
clean3:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy