The following commit has been merged in the master branch: commit 0836d0862914142a1dcfe1c8fb378f85e8c1f750 Author: Sven Eckelmann sven@narfation.org Date: Thu Mar 31 18:11:38 2011 +0200
batman-adv: Remove subversion/svk revision information
The current version of batman-adv cannot be obtained from subversion or svk anymore. It is unnecessary to provide the functionality to retrieve the current revision using these tools.
We only have to differenciate between git checkout and official release. We cannot detect a git snapshot and thus the distribution has to provide the REVISION variable for snapshots.
Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/Makefile b/Makefile index 830c53b..84828ea 100644 --- a/Makefile +++ b/Makefile @@ -29,24 +29,8 @@ endif
export KERNELPATH
-REVISION= $(shell if [ -d .svn ]; then \ - if which svn > /dev/null; then \ - echo rv$$(svn info | grep "Rev:" | sed -e '1p' -n | awk '{print $$4}'); \ - else \ - echo "[unknown]"; \ - fi; \ - elif [ -d .git ]; then \ - if which git > /dev/null; then \ - echo $$(git describe --always --dirty 2> /dev/null); \ - else \ - echo "[unknown]"; \ - fi; \ - elif [ -d ~/.svk ]; then \ - if which svk > /dev/null; then \ - echo rv$$(svk info | grep "Mirrored From" | awk '{print $$5}'); \ - else \ - echo "[unknown]"; \ - fi; \ +REVISION= $(shell if [ -d .git ]; then \ + echo $$(git describe --always --dirty 2> /dev/null || echo "[unknown]"); \ fi)
NUM_CPUS = $(shell nproc 2> /dev/null || echo 1)