[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7154 - GNUnet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7154 - GNUnet |
Date: |
Thu, 12 Jun 2008 01:08:17 -0600 (MDT) |
Author: holindho
Date: 2008-06-12 01:08:17 -0600 (Thu, 12 Jun 2008)
New Revision: 7154
Modified:
GNUnet/pre-commit
Log:
pre-commit that can exclude dirs
Modified: GNUnet/pre-commit
===================================================================
--- GNUnet/pre-commit 2008-06-12 07:06:11 UTC (rev 7153)
+++ GNUnet/pre-commit 2008-06-12 07:08:17 UTC (rev 7154)
@@ -1,2 +1,11 @@
#!/bin/sh
-indent -nut `find * -name "*.c"` `find * -name "*.h"`
+# NOTE: "touch mydir/no-indent" to make the tree starting at mydir untouchable
+l=""
+for n in `find . -name "no-indent"`
+do
+n=`dirname "$n"`
+l="-and -not -path \"$n/*\" $l"
+done
+indent -nut `echo $l | xargs find . -name "*.c"`
+indent -nut `echo $l | xargs find . -name "*.h"`
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7154 - GNUnet,
gnunet <=