derle.sh 542 B

1234567891011121314151617
  1. find -type f -exec sed -e 's_^#!/usr/bin/env python$_&2_' -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' -e 's_^#!/usr/bin/python$_&2_' -e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_' -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_' -e "s_'python'_'python2'_" -i {} \;
  2. find test/ -type f -exec sed 's_python _python2 _' -i {} \;
  3. export PYTHON=python2
  4. ./configure \
  5. --prefix=/usr \
  6. --with-intl=system-icu \
  7. --without-npm \
  8. --shared-openssl \
  9. --shared-zlib \
  10. --shared-libuv \
  11. --experimental-http-parser \
  12. --shared-cares \
  13. --shared-nghttp2
  14. make