alte Skripte rausgeworfen

mod_html_files nach documents verschoben
This commit is contained in:
lars 2005-04-24 16:18:51 +00:00
parent c4b03cd0ae
commit 762e1e23d5
6 changed files with 1 additions and 164 deletions

View file

@ -1,98 +0,0 @@
#!/bin/sh
# Parameter: Datenverzeichnis Zielverzeichnis [--copy (fuer cp statt ln -s)]
set -ue
ROOT_DIRS="doku ausLese cover"
ROOT_FILES="start.html autorun.inf news.txt favicon.ico"
REMOVE_LIST="ausLese/chaosradio"
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 ; /-unpatched\.html$/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 ######
for a in $ROOT_FILES
do $ACTION "$DATA/$a" .
done
###### die anderen Verzeichnisse #########
for a in $ROOT_DIRS
do bearbeiteVerzeichnis "$DATA/$a" "$ZIEL/$a"
done
for a in $REMOVE_LIST
do rm -r "$a"
done

View file

@ -1,20 +0,0 @@
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&uuml;r den Inhalt ohne Navigationsbalken (sollte auch gehen).
---
> Keine Frames? Klick
> <a href="doku/intro.html">hier</a>
> f&uuml;r den Inhalt ohne Navigationsbalken (sollte auch gehen), oder
> <a href="doku/onlineframe.html">hier</a>
> f&&ml; die Links zum Herunterladen.

View file

@ -1,36 +0,0 @@
#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

View file

@ -1,9 +0,0 @@
31,34c31,33
< <li><a href="../ausLese/rundum.html" title="Einige Vorstellungen und Mythen aus der Sicherheitspolitik">rundum sicher</a> -- von Christian
< V&auml;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&auml;re">Anonymit&auml;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&auml;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&auml;re">Anonymit&auml;t im Internet</a> -- die Raven-Homepage</li>

View file

@ -51,7 +51,7 @@ $(HTML_FILES): %.html: %.tex
-rm _output/$(notdir $(basename $@)).css 2>/dev/null
-rm _output/images.aux _output/images.log _output/images.out _output/images.pl _output/images.text _output/img?.old _output/labels.pl _output/missfont.log _output/images.tex 2>/dev/null
mv _output/$(shell dirname $@).html $@
python ../convert-scripts/mod_html_files.py $@
python mod_html_files.py $@
clean: