From 762e1e23d505da517e7eab08d0683ca41085243f Mon Sep 17 00:00:00 2001 From: lars Date: Sun, 24 Apr 2005 16:18:51 +0000 Subject: [PATCH] alte Skripte rausgeworfen mod_html_files nach documents verschoben --- convert-scripts/erzeuge_export_mirror.sh | 98 ------------------- convert-scripts/index.html.diff | 20 ---- convert-scripts/latex2html-init | 36 ------- convert-scripts/nav.html.diff | 9 -- documents/Makefile | 2 +- .../mod_html_files.py | 0 6 files changed, 1 insertion(+), 164 deletions(-) delete mode 100755 convert-scripts/erzeuge_export_mirror.sh delete mode 100644 convert-scripts/index.html.diff delete mode 100644 convert-scripts/latex2html-init delete mode 100644 convert-scripts/nav.html.diff rename {convert-scripts => documents}/mod_html_files.py (100%) diff --git a/convert-scripts/erzeuge_export_mirror.sh b/convert-scripts/erzeuge_export_mirror.sh deleted file mode 100755 index f8e1ff6..0000000 --- a/convert-scripts/erzeuge_export_mirror.sh +++ /dev/null @@ -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 diff --git a/convert-scripts/index.html.diff b/convert-scripts/index.html.diff deleted file mode 100644 index ab28e5f..0000000 --- a/convert-scripts/index.html.diff +++ /dev/null @@ -1,20 +0,0 @@ -4c4,6 -< ---- -> -> -> -6a9,13 -> -> -> -> -> -8c15,19 -< Keine Frames? Klick hier für den Inhalt ohne Navigationsbalken (sollte auch gehen). ---- -> Keine Frames? Klick -> hier -> für den Inhalt ohne Navigationsbalken (sollte auch gehen), oder -> hier -> f&&ml; die Links zum Herunterladen. diff --git a/convert-scripts/latex2html-init b/convert-scripts/latex2html-init deleted file mode 100644 index 9ccc49b..0000000 --- a/convert-scripts/latex2html-init +++ /dev/null @@ -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" . - - "
\n" . # Line break - - # If ``next'' section exists, add its title to the navigation panel - #($NEXT_TITLE ? " Next: $NEXT_TITLE\n" : undef) . - - # Similarly with the ``up'' title ... - ($UP_TITLE ? "Up: $UP_TITLE\n" : undef) . - - # ... and the ``previous'' title - ($PREVIOUS_TITLE ? " Previous: $PREVIOUS_TITLE\n" : undef) . - - # Line Break, horizontal rule (3-d dividing line) and new paragraph - "

\n" -} - - - - - -1; # This must be the last line - diff --git a/convert-scripts/nav.html.diff b/convert-scripts/nav.html.diff deleted file mode 100644 index a8224f6..0000000 --- a/convert-scripts/nav.html.diff +++ /dev/null @@ -1,9 +0,0 @@ -31,34c31,33 -<

  • rundum sicher -- von Christian -< Vähling
  • -<
  • Chaosradio -- Sendungen zum Thema
  • -<
  • Anonymität im Internet -- die Raven-Homepage
  • ---- ->
  • rundum sicher -- von Christian Vähling
  • ->
  • Chaosradio -- Sendungen zum Thema
  • ->
  • Anonymität im Internet -- die Raven-Homepage
  • diff --git a/documents/Makefile b/documents/Makefile index 027430b..82b300d 100644 --- a/documents/Makefile +++ b/documents/Makefile @@ -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: diff --git a/convert-scripts/mod_html_files.py b/documents/mod_html_files.py similarity index 100% rename from convert-scripts/mod_html_files.py rename to documents/mod_html_files.py