(no commit message)
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Tue, 10 Jun 2008 08:56:48 +0000 (08:56 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Tue, 10 Jun 2008 08:56:48 +0000 (08:56 +0000)
scripts/all-modules.sh

index a48cdd2..cf6fbbe 100755 (executable)
@@ -8,10 +8,10 @@
 
 OUTPUT=/build/modules
 
-# usage: do_version name dir 
+# usage: do_version dir name 
 function do_version () {
-    name=$1; shift
     build_dir=$1; shift
+    name=$1; shift
 
     out_dir=$OUTPUT/$name
     out_file=$out_dir/version.txt
@@ -26,10 +26,10 @@ function do_version () {
     mv -f $out_tmp $out_file
 }
 
-# usage: do_version name dir 
+# usage: do_version dir name 
 function do_diff () {
-    name=$1; shift
     build_dir=$1; shift
+    name=$1; shift
 
     out_dir=$OUTPUT/$name
     out_file=$out_dir/version.txt
@@ -47,7 +47,7 @@ function do_diff () {
       cat $out_tmp ) > $out_file
 }
 
-do_version trunk /root/svn-build
-do_diff    trunk /root/svn-build
-do_version 4.2 /root/svn-build-4.2
-do_diff    4.2 /root/svn-build-4.2
+do_version /root/svn-build     trunk 
+do_diff    /root/svn-build     trunk 
+do_version /root/svn-build-4.2 4.2 
+do_diff    /root/svn-build-4.2 4.2