>> $page # extractcomment < $i | sed 's/^$/
/;s/$/
/' >> $page
# echo
>> $page # Preserves monospaced arrangement. entries[script] += os.popen('extractcomment -h < ' + script).read() elif ('.tar' in script) or (script[-4:] == '.tgz') or (script[-4:] == '.tbz'): tarcmd = 'tar tf' if script[-2] == 'g': tarcmd += 'z' elif 'bz' in script[-3:]: tarcmd += 'j' listing = os.popen(tarcmd + ' ' + script).read().split("\n") entries[script] += "
- \n"
for thing in listing:
if not (re.match(r'.*/.*/', thing) or thing == ''):
entries[script] += '
- ' + thing + "\n" entries[script] += "