r143 als Version 1.1 zu tags hinzugefuegt
This commit is contained in:
parent
609b0db4c0
commit
19eed40acc
99 changed files with 10342 additions and 0 deletions
94
v1.1/_scripts/erzeuge_export_mirror.sh
Executable file
94
v1.1/_scripts/erzeuge_export_mirror.sh
Executable file
|
@ -0,0 +1,94 @@
|
|||
#!/bin/sh
|
||||
# Parameter: Datenverzeichnis Zielverzeichnis [--copy (fuer cp statt ln -s)]
|
||||
|
||||
set -u
|
||||
set -e
|
||||
#set -x
|
||||
|
||||
DEFAULT_ACTION="ln -s"
|
||||
|
||||
|
||||
filtere_verzeichnisse()
|
||||
{
|
||||
cd "$1"
|
||||
find -xtype d -maxdepth 1 | sed 's#^\./##' | sed '/^.$/d ; /^\.svn/d; /^_/d ; /^_bilder$/d'
|
||||
}
|
||||
|
||||
filtere_dateien()
|
||||
{
|
||||
cd "$1"
|
||||
find -xtype f -maxdepth 1 | sed 's#^\./##' | sed '/^Makefile$/d ; /\.tex$/d ; /\.lyx$/d ; /^WARNINGS$/d ; /\.py$/d ; /\.make$/d ; /\.log$/d ; /\.pl$/d'
|
||||
}
|
||||
|
||||
bearbeiteVerzeichnis()
|
||||
{
|
||||
[ ! -e "$1" ] && return 0
|
||||
local old_pwd=`pwd`
|
||||
mkdir "$2"
|
||||
cd "$2"
|
||||
for a in `filtere_verzeichnisse "$1"`
|
||||
do [ "$a" != "." ] && bearbeiteVerzeichnis "$1/$a" "$2/$a"
|
||||
done
|
||||
|
||||
for a in `filtere_dateien "$1"`
|
||||
do $ACTION "$1/$a" .
|
||||
done
|
||||
cd "$old_pwd"
|
||||
}
|
||||
|
||||
#### hier geht es los ########
|
||||
|
||||
# eventuelle Parameter auswerten
|
||||
|
||||
FERTIG=nein
|
||||
|
||||
while [ "$FERTIG" == "nein" -a $# -gt 2 ]
|
||||
do case "$1" in
|
||||
--copy )
|
||||
ACTION="cp"
|
||||
shift
|
||||
;;
|
||||
--link )
|
||||
ACTION="ln -s"
|
||||
shift
|
||||
;;
|
||||
--help )
|
||||
echo "syntax: $0 [ --copy | --link ] DATENVERZEICHNIS ZIELVERZEICHNIS"
|
||||
exit 0
|
||||
;;
|
||||
--* )
|
||||
echo "unbekannter Parameter: $1"
|
||||
exit 1
|
||||
;;
|
||||
* )
|
||||
FERTIG=ja
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
[ $# -lt 2 ] && echo "falsche Anzahl von Parametern!" && exit 1
|
||||
|
||||
DATA=$1
|
||||
ZIEL=$2
|
||||
|
||||
set +u
|
||||
[ -z "$ACTION" ] && ACTION="$DEFAULT_ACTION"
|
||||
set -u
|
||||
|
||||
# Verzeichnis anlegen
|
||||
[ -d "$ZIEL" ] && rm -r "$ZIEL"
|
||||
mkdir -p "$ZIEL"
|
||||
cd "$ZIEL"
|
||||
|
||||
#### Wurzelverzeichnis ######
|
||||
ROOT_LIST="start.html autorun.inf NEWS.txt"
|
||||
for a in $ROOT_LIST
|
||||
do $ACTION "$DATA/$a" .
|
||||
done
|
||||
|
||||
###### die anderen Verzeichnisse #########
|
||||
|
||||
for a in ausLese doku cover
|
||||
do bearbeiteVerzeichnis "$DATA/$a" "$ZIEL/$a"
|
||||
done
|
||||
|
20
v1.1/_scripts/index.html.diff
Normal file
20
v1.1/_scripts/index.html.diff
Normal file
|
@ -0,0 +1,20 @@
|
|||
4c4,6
|
||||
< <frameset cols="20%,80%" rows="1" frameborder="0">
|
||||
---
|
||||
>
|
||||
> <frameset rows="90%,10%" frameborder="0">
|
||||
> <frameset cols="20%,80%" frameborder="0">
|
||||
6a9,13
|
||||
> </frameset>
|
||||
> <frame src="doku/onlineframe.html" name="Onlineframe" colspan="2">
|
||||
>
|
||||
>
|
||||
>
|
||||
8c15,19
|
||||
< Keine Frames? Klick <a href="doku/intro.html">hier</a> für den Inhalt ohne Navigationsbalken (sollte auch gehen).
|
||||
---
|
||||
> Keine Frames? Klick
|
||||
> <a href="doku/intro.html">hier</a>
|
||||
> für den Inhalt ohne Navigationsbalken (sollte auch gehen), oder
|
||||
> <a href="doku/onlineframe.html">hier</a>
|
||||
> f&&ml; die Links zum Herunterladen.
|
36
v1.1/_scripts/latex2html-init
Normal file
36
v1.1/_scripts/latex2html-init
Normal file
|
@ -0,0 +1,36 @@
|
|||
#Buttons als Dateien speichern, damit sie durch ein Script ersetzt werden koennen:
|
||||
$LOCAL_ICONS = 0;
|
||||
$ALTERNATIVE_ICONS = '';
|
||||
#'About this Document' durch "" ersetzen:
|
||||
$INFO="";
|
||||
#if AUTO_PREFIX is set, all files produced have a filename-prefix using the name of the LATEX file being processed
|
||||
$AUTO_PREFIX = 1;
|
||||
|
||||
##########################################
|
||||
#customized header (ohne contents-icon und (engl.) Schrift)
|
||||
sub top_navigation_panel {
|
||||
|
||||
# Now add a few buttons with a space between them
|
||||
"$NEXT $UP $PREVIOUS $INDEX $CUSTOM_BUTTONS" .
|
||||
|
||||
"<BR>\n" . # Line break
|
||||
|
||||
# If ``next'' section exists, add its title to the navigation panel
|
||||
#($NEXT_TITLE ? "<B> Next:</B> $NEXT_TITLE\n" : undef) .
|
||||
|
||||
# Similarly with the ``up'' title ...
|
||||
($UP_TITLE ? "<B>Up:</B> $UP_TITLE\n" : undef) .
|
||||
|
||||
# ... and the ``previous'' title
|
||||
($PREVIOUS_TITLE ? "<B> Previous:</B> $PREVIOUS_TITLE\n" : undef) .
|
||||
|
||||
# Line Break, horizontal rule (3-d dividing line) and new paragraph
|
||||
"<BR> <P>\n"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1; # This must be the last line
|
||||
|
65
v1.1/_scripts/mod_html_files.py
Normal file
65
v1.1/_scripts/mod_html_files.py
Normal file
|
@ -0,0 +1,65 @@
|
|||
#!/usr/bin/env python
|
||||
'''gets a latex2html file and returns the file with a css tag
|
||||
and stuff'''
|
||||
import string
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
def writeFile(data, filename):
|
||||
"""
|
||||
write data to the given filename
|
||||
@param filename String : name of file to write to
|
||||
"""
|
||||
try:
|
||||
f = open(filename,"w")#oeffnen und schliessen =>
|
||||
f.close() #datei ist jetzt genullt
|
||||
f = open(filename,"a") #anhaengend oeffnen
|
||||
f.write(data)
|
||||
f.close()
|
||||
return ""
|
||||
except:
|
||||
print "(WW)[%s]: \"%s\" is not writeable!"%(__name__, filename)
|
||||
return filename
|
||||
|
||||
|
||||
### start of code
|
||||
try:
|
||||
f=open(sys.argv[1],"r")
|
||||
content=f.read()
|
||||
f.close()
|
||||
content=string.replace(content,'Table of Contents','Inhalt')
|
||||
# now cut off the hevea footer:
|
||||
footer="""<HR SIZE=2>
|
||||
<BLOCKQUOTE><EM>This document was translated from L<sup>A</sup>T<sub>E</sub>X by
|
||||
</EM><A HREF="http://pauillac.inria.fr/~maranget/hevea/index.html"><EM>H<FONT SIZE=2><sup>E</sup></FONT>V<FONT SIZE=2><sup>E</sup></FONT>A</EM></A><EM>.
|
||||
</EM></BLOCKQUOTE>"""
|
||||
content=string.replace(content,footer,"")
|
||||
#hevea inserts font tags, and
|
||||
#we don't want none fuken redneck messin wid our stylez!!@!#$!!1
|
||||
content = string.replace(content,'<FONT SIZE=5>','')
|
||||
content = string.replace(content,'</FONT>','')
|
||||
#recently switched to latex2html, now cutting of headers
|
||||
startoffset=string.find(content,"<HR>\n<ADDRESS>")
|
||||
endoffset=string.find(content,"</ADDRESS>",startoffset)+len("</ADDRESS>")
|
||||
if (startoffset >10) and (endoffset>startoffset):
|
||||
footer=content[startoffset:endoffset]
|
||||
content=string.replace(content,footer,"")
|
||||
#rename footnotes into Fussnoten
|
||||
content = string.replace(content,"Footnotes","Fu\xdfnoten")
|
||||
#rename content into Inhalt
|
||||
content = string.replace(content,"Contents","Inhalt")
|
||||
#delete everything till <body> tag
|
||||
content = content[string.find(content,"<BODY >"):]
|
||||
#put whole content into div tags
|
||||
content = string.replace(content,"<BODY >",'<!-- main starts here -->\n<div id="main">')
|
||||
content = string.replace(content,"</BODY>",'</div>')
|
||||
content = string.replace(content,"</HTML>",'<!-- end of main -->')
|
||||
#all done, writing tuned files
|
||||
writeFile(content,sys.argv[1])
|
||||
except: #read/write/whatever failed,
|
||||
# BOESE: unklare Fehlerbehandlung
|
||||
print "an defined error occured - but i'm too lame to fix that"
|
||||
print "usage:",sys.argv[0],"<file_to_modify>"
|
||||
sys.exit(1)
|
||||
sys.exit(0)
|
9
v1.1/_scripts/nav.html.diff
Normal file
9
v1.1/_scripts/nav.html.diff
Normal file
|
@ -0,0 +1,9 @@
|
|||
31,34c31,33
|
||||
< <li><a href="../ausLese/rundum.html" title="Einige Vorstellungen und Mythen aus der Sicherheitspolitik">rundum sicher</a> -- von Christian
|
||||
< Vähling</li>
|
||||
< <li><a href="../doku/chaosradio-index.html" title="Radiosendungen des CCC">Chaosradio</a> -- Sendungen zum Thema</li>
|
||||
< <li><a href="../ausLese/raven/index.html" title="Software zum Schutz der Privatsphäre">Anonymität im Internet</a> -- die Raven-Homepage</li>
|
||||
---
|
||||
> <li><a href="http://www.citycrimecontrol.net/texte/rundum.html" title="Einige Vorstellungen und Mythen aus der Sicherheitspolitik">rundum sicher</a> -- von Christian Vähling</li>
|
||||
> <li><a href="http://www.chaosradio.ccc.de/archiv.html" title="Radiosendungen des CCC">Chaosradio</a> -- Sendungen zum Thema</li>
|
||||
> <li><a href="http://kai.iks-jena.de/" title="Software zum Schutz der Privatsphäre">Anonymität im Internet</a> -- die Raven-Homepage</li>
|
Loading…
Add table
Add a link
Reference in a new issue