diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-10 01:02:50 +0000 |
commit | c66249b79aa9bfa0924494adcd5345b5b1244b0c (patch) | |
tree | 19a77c57cc41d8b522554fbde0c36d6f20d7dc7b /src/updates/gwenview_1.4_osdformat.sh | |
download | gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.tar.gz gwenview-c66249b79aa9bfa0924494adcd5345b5b1244b0c.zip |
Added old abandoned KDE3 version of gwenview
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1088034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/updates/gwenview_1.4_osdformat.sh')
-rwxr-xr-x | src/updates/gwenview_1.4_osdformat.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/updates/gwenview_1.4_osdformat.sh b/src/updates/gwenview_1.4_osdformat.sh new file mode 100755 index 0000000..6a28550 --- /dev/null +++ b/src/updates/gwenview_1.4_osdformat.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +# Escape backslashes. Shell sucks. +sed s'/\\/BACKSLASH/g' | ( + +osdMode= +while read line ; do + if echo $line | grep '^osd mode' >/dev/null 2>/dev/null ; then + osdMode=$(echo $line | sed 's/^.*=//') + continue + fi + if echo $line | grep '^free output format' >/dev/null 2>/dev/null ; then + freeOutputFormat=$(echo $line | sed -e 's/^.*=//') + continue + fi + echo $line +done + +case $osdMode in + 0) + osdFormat='' + ;; + 1) + osdFormat='%p' + ;; + 2) + osdFormat='%c' + ;; + 3) + osdFormat='%p\\n%c' + ;; + 4) + osdFormat="$freeOutputFormat" + ;; + *) + osdFormat='' + ;; +esac + +echo osdFormat=$osdFormat + +) | sed 's/BACKSLASH/\\/g' +# Escape backslashes. Shell sucks. |