diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-06-28 22:05:47 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-06-28 22:05:47 +0000 |
commit | ba2dd67864a618c90a383879c47f201ea0713231 (patch) | |
tree | d1aa0c7cf8f1ea6db86dd1a95d17b26533c0e03d /build_tools/test_kernel_git | |
parent | 7764117df27f0f74fb13f326b9203a8b3170d15a (diff) |
Integrate changes from Zaptel. builder is now indeed independent of
dahdi/zaptel .
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4377 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools/test_kernel_git')
-rwxr-xr-x | build_tools/test_kernel_git | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build_tools/test_kernel_git b/build_tools/test_kernel_git index e6bf083..bb8fda0 100755 --- a/build_tools/test_kernel_git +++ b/build_tools/test_kernel_git @@ -14,6 +14,7 @@ usage() { echo " $me setver <kernel_ver> Set the kernel version" echo " $me versions Print available versions" echo " $me version Print current (kernel) version" + echo " $me version_driver Print the version of Zaptel" echo " $me build Test-build" echo " $me git <git command> Run <git command>" echo "" @@ -70,6 +71,11 @@ case "$command" in echo -n "Actual: " git describe | cut -c2- ;; + version_driver) + version_h=include/dahdi/version.h + make $version_h >/dev/null + awk -F'"' '/ZAPTEL_VERSION/{print $2}' $version_h + ;; setver) kernel_ver="$2" tag="v$kernel_ver" @@ -77,13 +83,12 @@ case "$command" in git-reset --hard "$tag" make distclean make defconfig modules_prepare - #make SUBDIRS=scripts # generate scripts/mod/modpost set_var kernel_ver "$kernel_ver" ;; test|build) # you can pass extra parameters to the make command in # two ways: - # 1. Set th value of MAKE_PARAMS in git_test.conf . + # 1. Set the value of MAKE_PARAMS in git_test.conf . # 2. Any extra command-line parameter. shift make KSRC="$kernel_dir" KVERS=$kernel_ver $MAKE_PARAMS "$@" |