lkml.org 
[lkml]   [2005]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [ketchup] patch to allow for moving of .gitignore in 2.6.14
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-28 16:52    [W:0.229 / U:1.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site