From 307c28f2adca1127a7e5f4a0248247b9bbf197b5 Mon Sep 17 00:00:00 2001
From: atz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 9 Jun 2010 21:44:00 +0000
Subject: [PATCH] Some python code is non-executable (script_x_check updated)

This corrects an overreach on the earlier patch.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16644 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/src/extras/Evergreen.py           |  0
 Open-ILS/src/python/oils/__init__.py       |  0
 Open-ILS/src/python/oils/const.py          |  0
 Open-ILS/src/python/oils/event.py          |  0
 Open-ILS/src/python/oils/org.py            |  0
 Open-ILS/src/python/oils/system.py         |  0
 Open-ILS/src/python/oils/utils/__init__.py |  0
 Open-ILS/src/python/oils/utils/csedit.py   |  0
 Open-ILS/src/python/oils/utils/idl.py      |  0
 Open-ILS/src/python/oils/utils/utils.py    |  0
 build/i18n/tests/testhelper.py             |  0
 build/tools/script_x_check.sh              | 28 +++++++++++++++++++++++++++-
 12 files changed, 27 insertions(+), 1 deletion(-)
 mode change 100755 => 100644 Open-ILS/src/extras/Evergreen.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/__init__.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/const.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/event.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/org.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/system.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/utils/__init__.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/utils/csedit.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/utils/idl.py
 mode change 100755 => 100644 Open-ILS/src/python/oils/utils/utils.py
 mode change 100755 => 100644 build/i18n/tests/testhelper.py

diff --git a/Open-ILS/src/extras/Evergreen.py b/Open-ILS/src/extras/Evergreen.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/__init__.py b/Open-ILS/src/python/oils/__init__.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/const.py b/Open-ILS/src/python/oils/const.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/event.py b/Open-ILS/src/python/oils/event.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/org.py b/Open-ILS/src/python/oils/org.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/system.py b/Open-ILS/src/python/oils/system.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/utils/__init__.py b/Open-ILS/src/python/oils/utils/__init__.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/utils/csedit.py b/Open-ILS/src/python/oils/utils/csedit.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/utils/idl.py b/Open-ILS/src/python/oils/utils/idl.py
old mode 100755
new mode 100644
diff --git a/Open-ILS/src/python/oils/utils/utils.py b/Open-ILS/src/python/oils/utils/utils.py
old mode 100755
new mode 100644
diff --git a/build/i18n/tests/testhelper.py b/build/i18n/tests/testhelper.py
old mode 100755
new mode 100644
diff --git a/build/tools/script_x_check.sh b/build/tools/script_x_check.sh
index 18e892a6f5..d1e3a5578a 100755
--- a/build/tools/script_x_check.sh
+++ b/build/tools/script_x_check.sh
@@ -6,5 +6,31 @@
 # usage: run this from the base directory of your repo,
 #   or wherever you want to check, inclusive of subdirectories
 
-find . \( -name "*.pl" -o -name "*.sh" -o -name "*.py" \) ! -executable -ls
+find . \
+    \(  -path ./Open-ILS/src/python/oils -prune \
+     -o -path ./build/i18n/tests/testhelper.py -prune \
+     -o -path ./Open-ILS/src/extras/Evergreen.py -prune \
+    \) -o \
+\
+    \( \
+       -name "*.pl" \
+    -o -name "*.sh" \
+    -o -name "*.py" \
+    \) \
+    \( ! -executable \) \
+    -ls ;
 
+exit;
+
+
+########################################################
+These should be exceptions (non-executable python libs):
+./Open-ILS/src/python/oils/const.py
+./Open-ILS/src/python/oils/event.py
+./Open-ILS/src/python/oils/org.py
+./Open-ILS/src/python/oils/system.py
+./Open-ILS/src/python/oils/utils/utils.py
+./Open-ILS/src/python/oils/utils/csedit.py
+./Open-ILS/src/python/oils/utils/idl.py
+./Open-ILS/src/extras/Evergreen.py
+./build/i18n/tests/testhelper.py
-- 
2.11.0