X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fsetlocalversion;h=8564bedd1a7cf31c9b3d3f71b5c328de690bf182;hb=f43308fa0c7834d9707a2c212591275d1e095e50;hp=63d91e22ed7ccd18a0cd77852af647112ed216bb;hpb=5a1095a830299aef8dd32495e505e92ab1749e89;p=platform%2Fkernel%2Fu-boot.git diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 63d91e2..8564bed 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -141,7 +141,11 @@ if $scm_only; then fi if test -e include/config/auto.conf; then - . include/config/auto.conf + # We are interested only in CONFIG_LOCALVERSION and + # CONFIG_LOCALVERSION_AUTO, so extract these in a safe + # way (i.e. w/o sourcing auto.conf) + CONFIG_LOCALVERSION=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION=/ {print $2}'` + CONFIG_LOCALVERSION_AUTO=`cat include/config/auto.conf | awk -F '=' '/^CONFIG_LOCALVERSION_AUTO=/ {print $2}'` else echo "Error: kernelrelease not valid - run 'make prepare' to update it" exit 1