From 8d32a212a8b399018d4abc85203f2ca1b061cf05 Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Wed, 23 Aug 2017 13:30:21 +0200 Subject: [PATCH] Remove obsolete tools --- all.sh | 56 ------- announce.py | 196 ------------------------ gen.py | 432 ---------------------------------------------------- inxep.py | 145 ------------------ 4 files changed, 829 deletions(-) delete mode 100755 all.sh delete mode 100755 announce.py delete mode 100755 gen.py delete mode 100755 inxep.py diff --git a/all.sh b/all.sh deleted file mode 100755 index 11a2a45c..00000000 --- a/all.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh -# for all XEPs, generates HTML files and IETF-style reference, then copies XML file -# usage: ./all.sh - -## LICENSE ## -# -# Copyright (c) 1999 - 2013 XMPP Standards Foundation -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -## END LICENSE ## - -xeppath=/var/www/vhosts/xmpp.org/extensions - -ls xep-0*.xml > tmp1.txt -sed s/^xep-// tmp1.txt > tmp2.txt -sed s/.xml$// tmp2.txt > nums.txt -rm tmp*.txt - -while read f -do - xsltproc xep.xsl xep-$f.xml > $xeppath/xep-$f.html - xsltproc ref.xsl xep-$f.xml > $xeppath/refs/reference.XSF.XEP-$f.xml - xsltproc examples.xsl xep-$f.xml > $xeppath/examples/$f.xml - ./gen.py $f - cp xep-$f.xml $xeppath/ - ./gen.py $f -done < nums.txt - -rm nums.txt - -xsltproc xep.xsl xep-README.xml > $xeppath/README.html -xsltproc xep.xsl xep-template.xml > $xeppath/template.html - -cp *.dtd $xeppath/ -cp *.ent $xeppath/ -cp *.shtml $xeppath/ -cp *.xsd $xeppath/ - -# END diff --git a/announce.py b/announce.py deleted file mode 100755 index 14eb061b..00000000 --- a/announce.py +++ /dev/null @@ -1,196 +0,0 @@ -#!/usr/bin/env python - -# File: announce.py -# Version: 0.9 -# Description: a script for announcing XEPs -# Last Modified: 2016-10-03 -# Author: Peter Saint-Andre (stpeter@jabber.org) -# License: public domain -# HowTo: ./announce.py xepnum - -## LICENSE ## -# -# Copyright (c) 1999 - 2010 XMPP Standards Foundation -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. -# -## END LICENSE ## - -# IMPORTS: -# -import glob -import os -from select import select -import smtplib -import socket -from string import split,strip,join,find -import sys -import time -from xml.dom.minidom import parse,parseString,Document - -def getText(nodelist): - thisText = "" - for node in nodelist: - if node.nodeType == node.TEXT_NODE: - thisText = thisText + node.data - return thisText - -# get the seconds in the Unix era -now = int(time.time()) - -# READ IN ARGS: -# -# 1. XEP number - -xepnum = sys.argv[1]; - -xepfile = 'xep-' + xepnum + '.xml' - -# PARSE XEP HEADERS: -# -# - title -# - abstract -# - version -# - date -# - initials -# - remark - -thexep = parse(xepfile) -xepNode = (thexep.getElementsByTagName("xep")[0]) -headerNode = (xepNode.getElementsByTagName("header")[0]) -titleNode = (headerNode.getElementsByTagName("title")[0]) -title = getText(titleNode.childNodes) -abstractNode = (headerNode.getElementsByTagName("abstract")[0]) -abstract = getText(abstractNode.childNodes) -statusNode = (headerNode.getElementsByTagName("status")[0]) -xepstatus = getText(statusNode.childNodes) -typeNode = (headerNode.getElementsByTagName("type")[0]) -xeptype = getText(typeNode.childNodes) -revNodes = headerNode.getElementsByTagName("revision") -revNode = revNodes[0] -versionNode = (revNode.getElementsByTagName("version")[0]) -version = getText(versionNode.childNodes) -dateNode = (revNode.getElementsByTagName("date")[0]) -date = getText(dateNode.childNodes) -initialsNode = (revNode.getElementsByTagName("initials")[0]) -initials = getText(initialsNode.childNodes) -remNode = (revNode.getElementsByTagName("remark")[0]) -# could be

or