summaryrefslogtreecommitdiffstats
path: root/shell2html
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-11 13:27:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-11 13:27:07 +0200
commit60cb01f9a81c311f914aed4a23e8e5b35e965918 (patch)
tree8b9109a8f1bcf37506755e0e77b83b0a026cda57 /shell2html
parenta9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab (diff)
downloadbin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.gz
bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.xz
soem more cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'shell2html')
-rwxr-xr-xshell2html19
1 files changed, 0 insertions, 19 deletions
diff --git a/shell2html b/shell2html
deleted file mode 100755
index 407f40c..0000000
--- a/shell2html
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-COLORS="30=1a1a1a 31=993d6b 32=6b993d 33=996b3d 34=3d6b99 35=6b3d99 36=3d996b 37=cccccc 0=000000 1;30=4d4d4d 1;31=f5007b 1;32=7bf500 1;33=f57900 1;34=007bf5 1;35=7b00f5 1;36=00f57b 1;37=e6e6e6"
-
-sedstring=""
-for it in $COLORS; do
- shell=$(echo $it | cut -d= -f1)
- html=$(echo $it | cut -d= -f2)
- sedstring="${sedstring} s|\[(0)?(;)?${shell}m|\<\/font\>\<font color=\"\#${html}\"\>|g;"
-done
-
-#sedstring="${sedstring} s|</font>||;"
-sedstring="${sedstring} s|\[(0)?(;)?m|\<\/font\>\<font color=\"\#000000\"\>|g;"
-sedstring="${sedstring} 1s|^|<font color=\"#000000\">|;"
-sedstring="${sedstring} \$s|$|</font>|;"
-
-for file in $@; do
- sed -r "${sedstring}" "${file}"
-done