History

Merge commit 'v2.6.35' into perf/core

Conflicts: tools/perf/Makefile tools/perf/util/hist.c Merge reason: Resolve the conflicts and update to latest upstream.

Ingo Molnar committed 16 years ago

Commit 3772b732 parents 9fc3af4 9fe6206209 files · +1509 −649Browse files

Showing the changes to scripts (3 of 209 files). Show all

Unified · Split

3 files
  1. scripts/kconfig/nconf.gui.c +1 −1
  2. scripts/package/Makefile +1 −1
  3. scripts/setlocalversion +10 −6
scripts/kconfig/nconf.gui.c+1−1
@@ -226,7 +226,7 @@ void fill_window(WINDOW *win, const char *text) · 225 unmodified lines
226226 int len = get_line_length(line);
227227 strncpy(tmp, line, min(len, x));
228228 tmp[len] = '\0';
229− mvwprintw(win, i, 0, tmp);
229+ mvwprintw(win, i, 0, "%s", tmp);
230230 }
231231 }
232232
scripts/package/Makefile+1−1
@@ -44,7 +44,7 @@ rpm-pkg rpm: $(objtree)/kernel.spec FORCE · 43 unmodified lines
4444 fi
4545 $(MAKE) clean
4646 $(PREV) ln -sf $(srctree) $(KERNELPATH)
47− $(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --scm-only > $(objtree)/.scmversion
47+ $(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --save-scmversion
4848 $(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/.
4949 $(PREV) rm $(KERNELPATH)
5050 rm -f $(objtree)/.scmversion
scripts/setlocalversion+10−6
@@ -10,13 +10,13 @@ · 9 unmodified lines
1010 #
1111
1212 usage() {
13− echo "Usage: $0 [--scm-only] [srctree]" >&2
13+ echo "Usage: $0 [--save-scmversion] [srctree]" >&2
1414 exit 1
1515 }
1616
1717 scm_only=false
1818 srctree=.
19−if test "$1" = "--scm-only"; then
19+if test "$1" = "--save-scmversion"; then
2020 scm_only=true
2121 shift
2222 fi
@@ -30,11 +30,12 @@ fi · 7 unmodified lines
3030
3131 scm_version()
3232 {
33− local short=false
33+ local short
34+ short=false
3435
3536 cd "$srctree"
3637 if test -e .scmversion; then
37− cat "$_"
38+ cat .scmversion
3839 return
3940 fi
4041 if test "$1" = "--short"; then
@@ -131,12 +132,15 @@ collect_files() · 90 unmodified lines
131132 }
132133
133134 if $scm_only; then
134− scm_version
135+ if test ! -e .scmversion; then
136+ res=$(scm_version)
137+ echo "$res" >.scmversion
138+ fi
135139 exit
136140 fi
137141
138142 if test -e include/config/auto.conf; then
139− source "$_"
143+ . include/config/auto.conf
140144 else
141145 echo "Error: kernelrelease not valid - run 'make prepare' to update it"
142146 exit 1