]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove whitespace between options
authorRoy Marples <roy@marples.name>
Fri, 29 Nov 2013 17:38:44 +0000 (17:38 +0000)
committerRoy Marples <roy@marples.name>
Fri, 29 Nov 2013 17:38:44 +0000 (17:38 +0000)
genembedc

index 264cdc619700b6f49e5f282dd4c83d1e6d2ead44..1eb2426e6293a6b1deb1eff30d3922d366a98ab8 100755 (executable)
--- a/genembedc
+++ b/genembedc
@@ -43,5 +43,12 @@ cat <<EOF
 const char *dhcpcd_embedded_conf[] = {
 EOF
 
-$TOOL_SED -e 's/#.*$//' -e '/^$/d' -e 's/^/"/g' -e 's/$/\",/g' $CONF
+$TOOL_SED \
+       -e 's/#.*$//' \
+       -e '/^$/d' \
+       -e 's/^/"/g' \
+       -e 's/$/\",/g' \
+       -e 's/ [ ]*/ /g' \
+       -e 's/  [       ]*/ /g' \
+       $CONF
 printf "%s\n%s\n" "NULL" "};"