setlocalversion (6dbe7465713f0e45f0e867105ca944978d57346e) | setlocalversion (6dc0c2f3384fe543a805922c6a314c7ad25a92fc) |
---|---|
1#!/bin/sh 2# 3# This scripts adds local version information from the version 4# control systems git, mercurial (hg) and subversion (svn). 5# 6# If something goes wrong, send a mail the kernel build mailinglist 7# (see MAINTAINERS) and CC Nico Schottelius 8# <nico-linuxsetlocalversion -at- schottelius.org>. --- 16 unchanged lines hidden (view full) --- 25 shift 26fi 27if test $# -gt 0 -o ! -d "$srctree"; then 28 usage 29fi 30 31scm_version() 32{ | 1#!/bin/sh 2# 3# This scripts adds local version information from the version 4# control systems git, mercurial (hg) and subversion (svn). 5# 6# If something goes wrong, send a mail the kernel build mailinglist 7# (see MAINTAINERS) and CC Nico Schottelius 8# <nico-linuxsetlocalversion -at- schottelius.org>. --- 16 unchanged lines hidden (view full) --- 25 shift 26fi 27if test $# -gt 0 -o ! -d "$srctree"; then 28 usage 29fi 30 31scm_version() 32{ |
33 local short=false | 33 local short 34 short=false |
34 35 cd "$srctree" 36 if test -e .scmversion; then | 35 36 cd "$srctree" 37 if test -e .scmversion; then |
37 cat "$_" | 38 cat .scmversion |
38 return 39 fi 40 if test "$1" = "--short"; then 41 short=true 42 fi 43 44 # Check for git and a git repo. 45 if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then --- 85 unchanged lines hidden (view full) --- 131} 132 133if $scm_only; then 134 scm_version 135 exit 136fi 137 138if test -e include/config/auto.conf; then | 39 return 40 fi 41 if test "$1" = "--short"; then 42 short=true 43 fi 44 45 # Check for git and a git repo. 46 if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then --- 85 unchanged lines hidden (view full) --- 132} 133 134if $scm_only; then 135 scm_version 136 exit 137fi 138 139if test -e include/config/auto.conf; then |
139 source "$_" | 140 . include/config/auto.conf |
140else 141 echo "Error: kernelrelease not valid - run 'make prepare' to update it" 142 exit 1 143fi 144 145# localversion* files in the build and source directory 146res="$(collect_files localversion*)" 147if test ! "$srctree" -ef .; then --- 20 unchanged lines hidden --- | 141else 142 echo "Error: kernelrelease not valid - run 'make prepare' to update it" 143 exit 1 144fi 145 146# localversion* files in the build and source directory 147res="$(collect_files localversion*)" 148if test ! "$srctree" -ef .; then --- 20 unchanged lines hidden --- |