summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-doc/gentoo-web/files/bin/pytext')
-rwxr-xr-xapp-doc/gentoo-web/files/bin/pytext38
1 files changed, 0 insertions, 38 deletions
diff --git a/app-doc/gentoo-web/files/bin/pytext b/app-doc/gentoo-web/files/bin/pytext
deleted file mode 100755
index f0bd4336d880..000000000000
--- a/app-doc/gentoo-web/files/bin/pytext
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-
-# pytext 2.1
-# Copyright 1999-2000 Daniel Robbins
-# Distributed under the GPL
-
-import sys
-
-def runfile(myarg):
- "interprets a text file with embedded elements"
- mylocals={}
- try:
- a=open(myarg,'r')
- except IOError:
- sys.stderr.write("!!! Error opening "+myarg+"!\n")
- return
- mylines=a.readlines()
- a.close()
- pos=0
- while pos<len(mylines):
- if mylines[pos][0:8]=="<!--code":
- mycode=""
- pos=pos+1
- while (pos<len(mylines)) and (mylines[pos][0:3]!="-->"):
- mycode=mycode+mylines[pos]
- pos=pos+1
- exec(mycode,globals(),mylocals)
- else:
- sys.stdout.write(mylines[pos])
- pos=pos+1
-
-if len(sys.argv)>1:
- for x in sys.argv[1:]:
- runfile(x)
- sys.exit(0)
-else:
- sys.stderr.write("pytext 2.1 -- Copyright 1999-2000 Daniel Robbins. Distributed under the\nGNU Public License\n\nUsage: "+sys.argv[0]+" file0 [file1]...\n")
- sys.exit(1)