aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/setlocalversion7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index d6a866ed1835..a7b9f7607e13 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -30,11 +30,12 @@ fi
30 30
31scm_version() 31scm_version()
32{ 32{
33 local short=false 33 local short
34 short=false
34 35
35 cd "$srctree" 36 cd "$srctree"
36 if test -e .scmversion; then 37 if test -e .scmversion; then
37 cat "$_" 38 cat .scmversion
38 return 39 return
39 fi 40 fi
40 if test "$1" = "--short"; then 41 if test "$1" = "--short"; then
@@ -136,7 +137,7 @@ if $scm_only; then
136fi 137fi
137 138
138if test -e include/config/auto.conf; then 139if test -e include/config/auto.conf; then
139 source "$_" 140 . include/config/auto.conf
140else 141else
141 echo "Error: kernelrelease not valid - run 'make prepare' to update it" 142 echo "Error: kernelrelease not valid - run 'make prepare' to update it"
142 exit 1 143 exit 1