Le site arthur.bebou.netlib.re - retour accueil
git clone git://bebou.netlib.re/arthur.bebou
Log | Files | Refs |
common (373B)
1 #! /bin/sh 2 3 tmpd=$(mktemp -d) 4 trap "rm -rf $tmpd" EXIT 5 6 show() lowdown --html-no-skiphtml --html-no-escapehtml $tmpd/$1 7 8 tsv2layout() { 9 tee $tmpd/all | 10 head -n1 | tr '\t' '\n' > $tmpd/vars 11 tail -n+2 $tmpd/all | 12 while read line;do 13 eval $(echo "$line" | tr ' ' '\n' | paste -d '=' $tmpd/vars - | 14 sed -E 's/"/\\\"/g' | 15 sed -E 's/=/&"/;s/$/"/') 16 . ./"$1" 17 done 18 }