python,python3: Fix overridden usr/bin symlinks
authorJeffery To <redacted>
Sun, 31 Mar 2019 11:11:15 +0000 (19:11 +0800)
committerJeffery To <redacted>
Wed, 3 Apr 2019 13:05:14 +0000 (21:05 +0800)
commit0280c67103f525937569528c8ba88fa3e144a903
tree83c3078c8f7cd023ee7ebac2c54baa706098f72c
parentabfd6d81ed0e14e6742fcbc09a7c8d79ad5fd655
python,python3: Fix overridden usr/bin symlinks

Currently, all files in usr/bin (presumably all Python scripts) are run
through sed to replace the shebang; sed will overwrite the file whether
or not a match is found. This causes symlinks to be overridden and made
into copies of their targets. python[3]-base and python[3]-dev are
affected by this.

This adds the --follow-symlinks flag to sed, in addition to using
$(SED), so that symlinks are not overridden.

Signed-off-by: Jeffery To <redacted>
lang/python/python-package-install.sh
lang/python/python-package.mk
lang/python/python3-package.mk
git clone https://git.99rst.org/PROJECT