Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)