diff options
Diffstat (limited to 'update_stdlib.sh')
-rwxr-xr-x | update_stdlib.sh | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/update_stdlib.sh b/update_stdlib.sh deleted file mode 100755 index 0cdbb1b..0000000 --- a/update_stdlib.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash - -# Script to copy asyncio files to the standard library tree. -# Optional argument is the root of the Python 3.4 tree. -# Assumes you have already created Lib/asyncio and -# Lib/test/test_asyncio in the destination tree. - -CPYTHON=${1-$HOME/cpython} - -if [ ! -d $CPYTHON ] -then - echo Bad destination $CPYTHON - exit 1 -fi - -if [ ! -f asyncio/__init__.py ] -then - echo Bad current directory - exit 1 -fi - -maybe_copy() -{ - SRC=$1 - DST=$CPYTHON/$2 - if cmp $DST $SRC - then - return - fi - echo ======== $SRC === $DST ======== - diff -u $DST $SRC - echo -n "Copy $SRC? [y/N/back] " - read X - case $X in - [yY]*) echo Copying $SRC; cp $SRC $DST;; - back) echo Copying TO $SRC; cp $DST $SRC;; - *) echo Not copying $SRC;; - esac -} - -for i in `(cd asyncio && ls *.py)` -do - if [ $i == test_support.py ] - then - continue - fi - - if [ $i == selectors.py ] - then - if [ "`(cd $CPYTHON; hg branch)`" == "3.4" ] - then - echo "Destination is 3.4 branch -- ignoring selectors.py" - else - maybe_copy asyncio/$i Lib/$i - fi - else - maybe_copy asyncio/$i Lib/asyncio/$i - fi -done - -for i in `(cd tests && ls *.py *.pem)` -do - if [ $i == test_selectors.py ] - then - continue - fi - maybe_copy tests/$i Lib/test/test_asyncio/$i -done - -maybe_copy overlapped.c Modules/overlapped.c |