1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-01 02:23:16 +03:00

dsv/dsv (setup): remove trailing whitespace from lines from bookshelf file

This commit is contained in:
Werner Almesberger 2012-12-21 16:05:31 -03:00
parent 560bf9d64a
commit 24160ddd57

View File

@ -124,7 +124,7 @@ setup()
while read line; do
[ "$line" = "${line###}" ] || continue
tmp=`echo "$line" | awk '/^[^\t ]/ { print $1 }'`
tail=`echo "$line" | sed 's/^[^\t ]*[\t ]*//'`
tail=`echo "$line" | sed 's/^[^\t ]*[\t ]*//;s/[\t ]*$//'`
if [ -z "$tmp" ]; then
[ -z "$tail" ] || value="$value $tail"
else