summaryrefslogtreecommitdiff
path: root/tools/sfupload.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sfupload.py')
-rwxr-xr-xtools/sfupload.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/tools/sfupload.py b/tools/sfupload.py
deleted file mode 100755
index 8a3b078..0000000
--- a/tools/sfupload.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env python
-'''This uploads the latest pexpect package to sourceforge.
-
-PEXPECT LICENSE
-
- This license is approved by the OSI and FSF as GPL-compatible.
- http://opensource.org/licenses/isc-license.txt
-
- Copyright (c) 2012, Noah Spurrier <noah@noah.org>
- PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
- PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE
- COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-'''
-import pexpect
-import sys
-
-child = pexpect.spawn('ftp upload.sourceforge.net')
-child.logfile = sys.stdout
-child.expect('Name .*: ')
-child.sendline('anonymous')
-child.expect('Password:')
-child.sendline('noah@noah.org')
-child.expect('ftp> ')
-child.sendline('cd /incoming')
-child.expect('ftp> ')
-child.sendline('lcd dist')
-child.expect('ftp> ')
-child.sendline('bin')
-child.expect('ftp> ')
-child.sendline('prompt')
-child.expect('ftp> ')
-child.sendline('mput pexpect-*.tar.gz')
-child.expect('ftp> ')
-child.sendline('ls pexpect*')
-child.expect('ftp> ')
-print child.before
-child.sendline('bye')
-