Remove vim comments and fix formatting a little.
authorRoy Marples <roy@marples.name>
Fri, 8 Feb 2008 18:23:37 +0000 (18:23 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Feb 2008 18:23:37 +0000 (18:23 +0000)
dnsmasq.in
libc.in
resolvconf.in

index fbe5bedba51bfc421fe163a46adf944968bf3b5e..2de1f3b7af983ba711c2b510ec032494e644a934 100755 (executable)
@@ -160,5 +160,3 @@ if [ "${DBUS}" = "yes" ]; then
                /uk/org/thekelleys/dnsmasq uk.org.thekelleys.SetServers \
                ${DBUSDEST}
 fi
-
-# vim: ts=4 :
diff --git a/libc.in b/libc.in
index e1e9014f909cc817df71ca7f7fa8182306a798f3..0f533b1444d76555a342e47fbeb3c0204354b22b 100755 (executable)
--- a/libc.in
+++ b/libc.in
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright 2007 Roy Marples
+# Copyright 2007-2008 Roy Marples
 # All rights reserved
 
 # libc subscriber for resolvconf 
index e59cdbe7525c5877d2c72cca47e2c511ab2016b4..d76a0e085c01e96b046de0465105eaadebabdba2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright 2007 Roy Marples
+# Copyright 2007-2008 Roy Marples
 # All rights reserved
 
 # Redistribution and use in source and binary forms, with or without
@@ -180,7 +180,8 @@ if [ "x${CMD}" = "x-v" ]; then
        NEWSEARCH=
        NEWNS=
        NEWDOMAIN=
-       LINES="$("${argv0}" -l "${IFACE}" | sed -e "s/'/'\\\\''/g" -e "s/^/'/g" -e "s/$/'/g")"
+       LINES="$("${argv0}" -l "${IFACE}" |
+               sed -e "s/'/'\\\\''/g" -e "s/^/'/g" -e "s/$/'/g")"
        eval set -- ${LINES}
        for LINE in "$@"; do
                case "${LINE}" in
@@ -226,8 +227,10 @@ if [ "x${CMD}" = "x-v" ]; then
        for S in ${NEWSEARCH}; do
                for DN in ${NEWDOMAIN}; do
                        if [ "${S%,*}" = "${DN%,*}" ]; then
-                               NEWSEARCH="$(echo "${NEWSEARCH}" | sed -e "s/${S}/${DN}/g")"
-                               NEWDOMAIN="$(echo "${NEWDOMAIN}" | sed -e "s/${DN}//g")"
+                               NEWSEARCH="$(echo "${NEWSEARCH}" |
+                                       sed -e "s/${S}/${DN}/g")"
+                               NEWDOMAIN="$(echo "${NEWDOMAIN}" |
+                                       sed -e "s/${DN}//g")"
                                break
                        fi
                done
@@ -305,5 +308,3 @@ for x in "${UPDATED}"/*; do
 done
 
 exit ${retval}
-
-# vim: set ts=4 :