X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=create-xml;fp=create-xml;h=0000000000000000000000000000000000000000;hp=81990e1c685081ae9691e9365a6db327994158cd;hb=b2bd805e88f2cf208058408ef04bf78a0d31cffc;hpb=3797656d7cd3de9c370a1b4d830d6cda47c7a88f diff --git a/create-xml b/create-xml deleted file mode 100755 index 81990e1..0000000 --- a/create-xml +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/sh - -if [ -z "$1" -o -z "$2" ]; then - echo "usage: $0 " - exit -fi -name=$1 ; file=$2 - -topic=`grep '^T' $file | awk -F^ '{ print $2 }'` -desc=`grep '^D' $file | awk -F^ '{ print $2 }'` -author=`grep '^A' $file | awk -F^ '{ print $2 }'` -email=`grep '^M' $file | awk -F^ '{ print $2 }'` -event=`grep '^E' $file | awk -F^ '{ print $2 }'` -location=`grep '^L' $file | awk -F^ '{ print $2 }'` - -# print normal header -cat > $name << EOF - - - - - -
-
$topic
-
-
$desc
-
- $author - - email: $email - event: $event - location: $location -
- -EOF - -total=`tail -1 $file | awk -F^ '{ print $1 }'` -((count = 0)) - -cat >> $name << EOF - -
-
Inhalt
-
- -EOF -while [ "1" ]; do - ((j = 0)) - ((count += 1)) - kapitel=`grep ^${count} $file | awk -F^ '{ print $2 }'` - # j_max=`grep ^${count} $file | sed 's/\^/ /g' | wc -w` - # ((j_max -= 2)) - cat >> $name << EOF - $kapitel - -EOF - grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " "$i"" }' >> $name - cat >> $name << EOF - -EOF - [ "$count" = "$total" ] && break -done -cat >> $name << EOF -
- -EOF - - -((count = 0)) -while [ "1" ]; do - ((count += 1)) - kapitel=`grep ^${count} $file | awk -F^ '{ print $2 }'` - cat >> $name << EOF - - -
-
$kapitel
-
- -EOF - ((j = 0)) - grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " " $i " \ - \ - muster \ - muster \ - muster \ - muster \ - " }' >> $name - cat >> $name << EOF -
-EOF - [ "$count" = "$total" ] && break -done - -cat >> $name << EOF -
-EOF - -echo "done ..."