summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoah <noah@656d521f-e311-0410-88e0-e7920216d269>2002-10-03 01:23:22 +0000
committernoah <noah@656d521f-e311-0410-88e0-e7920216d269>2002-10-03 01:23:22 +0000
commit812f20e197f922a4269ebae0b48e2da129d2aed2 (patch)
tree97dab1655e6f4981730b56e2f286251df438b379
parentc09eb2b7f1b21f6915f09d0666adc5d2d3b6ce84 (diff)
downloadpexpect-812f20e197f922a4269ebae0b48e2da129d2aed2.tar.gz
Small fix in Makefile and make sfupload support new file names.
git-svn-id: http://pexpect.svn.sourceforge.net/svnroot/pexpect/trunk@95 656d521f-e311-0410-88e0-e7920216d269
-rw-r--r--pexpect/Makefile4
-rwxr-xr-xpexpect/sfupload.py10
2 files changed, 6 insertions, 8 deletions
diff --git a/pexpect/Makefile b/pexpect/Makefile
index 9af3f29..e0c0811 100644
--- a/pexpect/Makefile
+++ b/pexpect/Makefile
@@ -26,7 +26,7 @@ dist: pexpect-current.tgz
pexpect-current.tgz: dist/pexpect-$(VERSION).tar.gz
rm -f pexpect-current.tgz
cp dist/pexpect-$(VERSION).tar.gz ./pexpect-current.tgz
- cp dist/pexpect-$(VERSION).tar.gz .
+ cp dist/pexpect-$(VERSION).tar.gz ./pexpect-$(VERSION).tgz
doc: pexpect-doc.tgz
@@ -47,7 +47,7 @@ clean:
rm -f *.pyc
rm -f dist/pexpect-$(VERSION).tar.gz
cd dist;rm -rf pexpect-$(VERSION)/
- rm -f pexpect-$(VERSION).tar.gz
+ rm -f pexpect-$(VERSION).tgz
rm -f pexpect-current.tgz
rm -f pexpect-examples.tgz
rm -f pexpect-doc.tgz
diff --git a/pexpect/sfupload.py b/pexpect/sfupload.py
index 2586326..991d195 100755
--- a/pexpect/sfupload.py
+++ b/pexpect/sfupload.py
@@ -4,7 +4,7 @@
import pexpect
import sys
-child = pexpect.spawn('/usr/bin/ftp upload.sourceforge.net')
+child = pexpect.spawn('ftp upload.sourceforge.net')
child.expect('Name .*: ')
child.sendline('anonymous')
child.expect('Password:')
@@ -14,13 +14,11 @@ child.sendline('cd /incoming')
child.expect('ftp> ')
child.sendline('bin')
child.expect('ftp> ')
-child.sendline('put pexpect-current.tgz')
+child.sendline('prompt')
child.expect('ftp> ')
-child.sendline('put pexpect-doc.tgz')
+child.sendline('mput pexpect-*.tgz')
child.expect('ftp> ')
-child.sendline('put pexpect-examples.tgz')
-child.expect('ftp> ')
-child.sendline('ls pexpect*')
+child.sendline('ls pexpect-*')
child.expect('ftp> ')
print child.before
child.sendline('bye')