Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201185
b: refs/heads/master
c: b003afe
h: refs/heads/master
i:
  201183: a7281b1
v: v3
  • Loading branch information
Michal Marek committed Jul 21, 2010
1 parent b63ff02 commit 5900353
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dc0c2f3384fe543a805922c6a314c7ad25a92fc
refs/heads/master: b003afe32f608b8d9f9a898b36514dfbf374fd3a
2 changes: 1 addition & 1 deletion trunk/scripts/package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rpm-pkg rpm: $(objtree)/kernel.spec FORCE
fi
$(MAKE) clean
$(PREV) ln -sf $(srctree) $(KERNELPATH)
$(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --scm-only > $(objtree)/.scmversion
$(CONFIG_SHELL) $(srctree)/scripts/setlocalversion --save-scmversion
$(PREV) tar -cz $(RCS_TAR_IGNORE) -f $(KERNELPATH).tar.gz $(KERNELPATH)/.
$(PREV) rm $(KERNELPATH)
rm -f $(objtree)/.scmversion
Expand Down
9 changes: 6 additions & 3 deletions trunk/scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5900353

Please sign in to comment.