diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-16 16:05:53 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-16 16:05:53 -0600 |
commit | 2a84b711d4c9c28fd6e03457311fd05203318d24 (patch) | |
tree | c825e162ec40405187fd4892b08e8e036a5db308 /src/settings/tdesvn-use-external-update.sh | |
parent | 6cd1f99df4d8a5385335e0148fb0d4e424631e6b (diff) | |
download | tdesvn-2a84b711d4c9c28fd6e03457311fd05203318d24.tar.gz tdesvn-2a84b711d4c9c28fd6e03457311fd05203318d24.zip |
Finish rename from prior commit
Diffstat (limited to 'src/settings/tdesvn-use-external-update.sh')
-rwxr-xr-x | src/settings/tdesvn-use-external-update.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/settings/tdesvn-use-external-update.sh b/src/settings/tdesvn-use-external-update.sh new file mode 100755 index 0000000..c97242a --- /dev/null +++ b/src/settings/tdesvn-use-external-update.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +display= +lastvalue= + +while read line ; do + if [ "${line#\[}" != "$line" ]; then + continue; + fi + KEY="${line%%=*}" + VALUE="${line#*=}" + if echo "$KEY" | grep 'use_kompare_for_diff' >/dev/null 2>/dev/null; then + display=$VALUE + echo '# DELETE [general_items]use_kompare_for_diff' + elif echo "$KEY" | grep 'external_diff_display' > /dev/null 2>/dev/null; then + exdisplay=$VALUE + elif [ "x$KEY" != "x" ]; then + echo "$KEY=$VALUE" + fi +done + +if [ "x$exdisplay" = "x" -o "x$display" = "x1" ]; then + exdisplay="kompare -on -" +fi +if [ "x$display" = "x2" -o "x$display" = "x1" ]; then + display=true +else + display=false +fi +echo "use_external_diff=$display" +echo "external_diff_display=$exdisplay" |