diff options
author | Michal Marek <mmarek@suse.cz> | 2010-07-15 10:36:37 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-07-21 16:06:05 +0200 |
commit | b003afe32f608b8d9f9a898b36514dfbf374fd3a (patch) | |
tree | 1a2da53522eeecafc843a37ffd4ff5663e61a46e /scripts/setlocalversion | |
parent | 6dc0c2f3384fe543a805922c6a314c7ad25a92fc (diff) | |
download | linux-3.10-b003afe32f608b8d9f9a898b36514dfbf374fd3a.tar.gz linux-3.10-b003afe32f608b8d9f9a898b36514dfbf374fd3a.tar.bz2 linux-3.10-b003afe32f608b8d9f9a898b36514dfbf374fd3a.zip |
kbuild: Fix make rpm
make rpm was broken by commit 0915512:
make clean
set -e; cd ..; ln -sf /usr/src/iwlwifi-2.6 kernel-2.6.35rc4wl
/bin/sh /usr/src/iwlwifi-2.6/scripts/setlocalversion --scm-only >
/usr/src/iwlwifi-2.6/.scmversion
cat: .scmversion: input file is output file
make[1]: *** [rpm] Error 1
Reported-and-tested-by: "Zheng, Jiajia" <jiajia.zheng@intel.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-x | scripts/setlocalversion | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index a7b9f7607e1..64a9cb5556c 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -10,13 +10,13 @@ # usage() { - echo "Usage: $0 [--scm-only] [srctree]" >&2 + echo "Usage: $0 [--save-scmversion] [srctree]" >&2 exit 1 } scm_only=false srctree=. -if test "$1" = "--scm-only"; then +if test "$1" = "--save-scmversion"; then scm_only=true shift fi @@ -132,7 +132,10 @@ collect_files() } if $scm_only; then - scm_version + if test ! -e .scmversion; then + res=$(scm_version) + echo "$res" >.scmversion + fi exit fi |