summaryrefslogtreecommitdiff
path: root/tools/merge_templates.py
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-11-23 18:20:40 -0800
committerJeff Quast <contact@jeffquast.com>2014-11-23 18:20:40 -0800
commit8cce225840ee22d375f3e6892fc6931f866cf0b8 (patch)
treed0f8b8e6780d17262a6897c6d9e880f45d5b1f6e /tools/merge_templates.py
parent67a789ae2546637e95f83fa691f7c735329d8eeb (diff)
downloadpexpect-git-8cce225840ee22d375f3e6892fc6931f866cf0b8.tar.gz
Delete unused files from tools/
Many are related to sourceforge (websync, sfupload), or related to documentation building (we use readthedocs), noah's dotfiles are also in here (256K), or contain NameError (pyed). This leaves getkey and step, which do not seem terribly useful to include in the pexpect archive.
Diffstat (limited to 'tools/merge_templates.py')
-rwxr-xr-xtools/merge_templates.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/merge_templates.py b/tools/merge_templates.py
deleted file mode 100755
index b4fab18..0000000
--- a/tools/merge_templates.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env python
-
-'''
-I used to use this to keep the sourceforge pages up to date with the
-latest documentation and I like to keep a copy of the distribution
-on the web site so that it will be compatible with
-The Vaults of Parnasus which requires a direct URL link to a
-tar ball distribution. I don't advertise the package this way.
-
-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 os
-import re
-import pyed
-
-# extract the version number from the pexpect.py source.
-d = pyed.pyed()
-d.read ("pexpect.py")
-d.first('^__version__')
-r = re.search("'([0-9]\.[0-9])'", d.cur_line)
-version = r.group(1)
-
-# Edit the index.html to update current VERSION.
-d = pyed.pyed()
-d.read ("doc/index.template.html")
-for cl in d.match_lines('.*VERSION.*'):
- d.cur_line = d.cur_line.replace('VERSION', version)
-d.write("doc/index.html")
-
-# Edit the setup.py to update current VERSION.
-d = pyed.pyed()
-d.read ("setup.py.template")
-for cl in d.match_lines('.*VERSION.*'):
- d.cur_line = d.cur_line.replace('VERSION', version)
-d.write("setup.py")
-os.chmod("setup.py", 0755)
-