Re: [ketchup] patch to allow for moving of .gitignore in 2.6.14
From: Steven Rostedt
Date: Fri Oct 28 2005 - 09:49:53 EST
On Fri, 2005-10-28 at 08:54 -0400, Steven Rostedt wrote:
> Hi Matt,
>
> Here's a small patch to ketchup to make it move the .gitignore that is
> now included in 2.6.14.
>
> -- Steve
>
> Index: Ketchup-d9503020b3c1/ketchup
> ===================================================================
> --- Ketchup-d9503020b3c1.orig/ketchup 2005-10-28 08:38:50.000000000 -0400
> +++ Ketchup-d9503020b3c1/ketchup 2005-10-28 08:48:37.000000000 -0400
> @@ -482,7 +482,7 @@
> error("Unpacking failed: ", err)
> sys.exit(-1)
>
> - err = os.system("mv linux*/* . ; rmdir linux*")
> + err = os.system("mv linux*/* linux*/.git* . ; rmdir linux*")
> if err:
> error("Unpacking failed: ", err)
> sys.exit(-1)
>
Unfortunately, the above shows an error message (but does not fail) for
2.6.13. Here's a better updated fix/hack to allow for either
having .gitignore, or not.
-- Steve
Index: Ketchup-d9503020b3c1/ketchup
===================================================================
--- Ketchup-d9503020b3c1.orig/ketchup 2005-10-28 08:38:50.000000000 -0400
+++ Ketchup-d9503020b3c1/ketchup 2005-10-28 10:45:43.000000000 -0400
@@ -482,7 +482,7 @@
error("Unpacking failed: ", err)
sys.exit(-1)
- err = os.system("mv linux*/* . ; rmdir linux*")
+ err = os.system("shopt -s dotglob; mv linux*/* . ; rmdir linux*")
if err:
error("Unpacking failed: ", err)
sys.exit(-1)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/