]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/setlocalversion
Input: gpio_keys_polled - switch to using polled mode of input devices
[linux.git] / scripts / setlocalversion
index 365b3c2b8f431f28a83a6641ccf2da043dc05b55..a2998b118ef9ed68ae1ffe8be1d4609beef806d5 100755 (executable)
@@ -93,7 +93,7 @@ scm_version()
        # Check for mercurial and a mercurial repo.
        if test -d .hg && hgid=`hg id 2>/dev/null`; then
                # Do we have an tagged version?  If so, latesttagdistance == 1
-               if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then
+               if [ "`hg log -r . --template '{latesttagdistance}'`" = "1" ]; then
                        id=`hg log -r . --template '{latesttag}'`
                        printf '%s%s' -hg "$id"
                else
@@ -126,7 +126,7 @@ scm_version()
 
 collect_files()
 {
-       local file res
+       local file res=
 
        for file; do
                case "$file" in