[zaptel-commits] tzafrir: branch 1.4 r3840 - /branches/1.4/build_tools/test_kernel_git

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Sat Feb 16 14:15:54 CST 2008


Author: tzafrir
Date: Sat Feb 16 14:15:54 2008
New Revision: 3840

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3840
Log:
Add an options 'versions' to list available kernel revisions (tags).

Modified:
    branches/1.4/build_tools/test_kernel_git

Modified: branches/1.4/build_tools/test_kernel_git
URL: http://svn.digium.com/view/zaptel/branches/1.4/build_tools/test_kernel_git?view=diff&rev=3840&r1=3839&r2=3840
==============================================================================
--- branches/1.4/build_tools/test_kernel_git (original)
+++ branches/1.4/build_tools/test_kernel_git Sat Feb 16 14:15:54 2008
@@ -6,12 +6,15 @@
 CONF_FILE=build_tools/git_test.conf
 
 usage() {
-	echo "$0: test building Zaptel vs. kernel from git"
+	me=`basename $0`
+	echo "$me: test building Zaptel vs. kernel from git"
 	echo "Usage:"
-	echo "  $0 checkout <kerneldir>  Pull a kernel version into <kerneldir>"
-	echo "  $0 update                Update (pull) the kernel tree."
-	echo "  $0 setver <kernel_ver>   Set the kernel version"
-	echo "  $0 test                  Test-build"
+	echo "  $me checkout <kerneldir>  Pull a kernel version into <kerneldir>"
+	echo "  $me update                Update (pull) the kernel tree."
+	echo "  $me setver <kernel_ver>   Set the kernel version"
+	echo "  $me test                  Test-build"
+	echo ""
+	echo "  $me versions [pattern]    List available versions."
 }
 
 # Set a variable in $CONF_FILE
@@ -43,11 +46,15 @@
 		kernel_dir="$2"
 		cd "$kernel_dir"
 		git clone $GIT_URL
-		set_ver kernel_dir "$kernel_dir/linux-2.6"
+		set_var kernel_dir "$kernel_dir/linux-2.6"
 		;;
 	update)
 		cd "$kernel_dir"
-		git-pull
+		git pull
+		;;
+	versions)
+		cd "$kernel_dir"
+		git tag -l $2 | cut -c2-
 		;;
 	setver)
 		kernel_ver="$2"




More information about the zaptel-commits mailing list