Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 8bee0c0

Browse files
committed
update_asyncio.sh: Make target python dir configurable
1 parent d029e33 commit 8bee0c0

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

update_asyncio.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
PYTHON=${PYTHON:-~/prog/python/default}
2-
ASYNCIO=${ASYNCIO:-.}
1+
#!/bin/bash
2+
3+
PYTHON=${1-$HOME/cpython}
4+
5+
if [ ! -d $PYTHON ]
6+
then
7+
echo Bad destination $PYTHON
8+
exit 1
9+
fi
10+
11+
if [ ! -f asyncio/__init__.py ]
12+
then
13+
echo Bad current directory
14+
exit 1
15+
fi
316

417
echo "Sync from $PYTHON to $ASYNCIO"
518
set -e -x

0 commit comments

Comments
 (0)