[SM-Commit] GIT changes to master quill by Jaka Kranjc (40bcb65b372a37493c0795d01bede0ea2725a708)

Jaka Kranjc scm at sourcemage.org
Mon Apr 9 12:30:49 EDT 2007


GIT changes to master quill by Jaka Kranjc <lynxlynxlynx at sourcemage.org>:

 usr/bin/quill                 |    3 +++
 var/lib/quill/ChangeLog       |    4 ++++
 var/lib/quill/modules/libcore |   20 ++++++++++++++++++++
 var/lib/quill/version         |    2 +-
 4 files changed, 28 insertions(+), 1 deletion(-)

New commits:
commit 40bcb65b372a37493c0795d01bede0ea2725a708
Author: Jaka Kranjc <lynxlynxlynx at sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx at sourcemage.org>

    libcore, quill: added check_executable_bits

diff --git a/usr/bin/quill b/usr/bin/quill
index 14954a0..209cf4e 100755
--- a/usr/bin/quill
+++ b/usr/bin/quill
@@ -197,6 +197,9 @@ then
           echo
         fi
 
+        # check that all files are executable
+        check_executable_bits
+
         rm DETAILS.orig
         if query "Do you want to review the update or add custom modifications?" y
         then
diff --git a/var/lib/quill/ChangeLog b/var/lib/quill/ChangeLog
index 00cb494..358bc3a 100644
--- a/var/lib/quill/ChangeLog
+++ b/var/lib/quill/ChangeLog
@@ -1,4 +1,8 @@
 2007-04-09 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
+	* libcore, quill: added check_executable_bits
+	* version: 0.2.4-rc13
+
+2007-04-09 Jaka Kranjc <lynxlynxlynx at sourcemage.org>
 	* libupdate: renamed if_var to the more clear version_switch
 	* libdetails: fixed hunt_src_dir error case
 	* all: added @Globals, made some variables local, renamed some for clarity
diff --git a/var/lib/quill/modules/libcore b/var/lib/quill/modules/libcore
index 1f7a705..50cff9a 100644
--- a/var/lib/quill/modules/libcore
+++ b/var/lib/quill/modules/libcore
@@ -485,6 +485,26 @@ function clear_html_specials(){
 }
 
 #---
+## @Synopsis checks if spell files are executable and possibly fixes them
+## @Synopsis it ignores known files that don't need it
+##
+## @Globals
+#---
+function check_executable_bits(){
+  local file
+
+  find $QUILL_SPELL_DIR/$SPELL_NAME -type f \
+    -wholename '*/[A-Z][A-Z]*[A-Z]' ! -perm /111 |
+  grep -vE "HISTORY|TESTS|WIP|MAINTAINER|README|LICENSE|PROVIDES|REPAIR|EXPORTS" |
+  while read file; do
+    message "${file##*/} does not have the executable bit set!"
+    if query "Do you want to add it?" y; then
+      chmod +x "$file"
+    fi
+  done
+}
+
+#---
 ## @Synopsis prints a colored error message
 ##
 ## @Globals none
diff --git a/var/lib/quill/version b/var/lib/quill/version
index dbd37cc..6e8ec87 100644
--- a/var/lib/quill/version
+++ b/var/lib/quill/version
@@ -1 +1 @@
-0.2.4-rc12
+0.2.4-rc13



More information about the SM-Commit mailing list