[open-ils-commits] r9642 - trunk/Open-ILS/src/extras

svn at svn.open-ils.org svn at svn.open-ils.org
Mon May 19 14:17:10 EDT 2008


Author: miker
Date: 2008-05-19 14:17:07 -0400 (Mon, 19 May 2008)
New Revision: 9642

Added:
   trunk/Open-ILS/src/extras/reconcile-perms.sh
Log:
script to find new perms from permacrud that are not in the permission seed data yet

Added: trunk/Open-ILS/src/extras/reconcile-perms.sh
===================================================================
--- trunk/Open-ILS/src/extras/reconcile-perms.sh	                        (rev 0)
+++ trunk/Open-ILS/src/extras/reconcile-perms.sh	2008-05-19 18:17:07 UTC (rev 9642)
@@ -0,0 +1,17 @@
+#!/bin/bash
+pushd . >/dev/null 2>/dev/null
+cd `dirname $0`
+
+xsltproc ../../examples/extract-IDL-permissions.xsl ../../examples/fm_IDL.xml|perl -e 'while(<>){s/^\s+(.*)\s+$/$1/o;print("$1\n")unless(/^\s*$/ || /\s+/)}'|sort -u > /tmp/oils_permacrud_perm_list
+grep -A1 perm_list ../sql/Pg/950.data.seed-values.sql|grep "'"|cut -f2 -d"'"|sort -u > /tmp/oils_sql_perm_list
+
+echo "New permissions from permacrud:"
+echo
+
+diff -pu /tmp/oils_sql_perm_list /tmp/oils_permacrud_perm_list |grep '^+'|cut -f2 -d'+'|grep -v '^$'
+
+echo
+
+popd >/dev/null 2>/dev/null
+
+


Property changes on: trunk/Open-ILS/src/extras/reconcile-perms.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the open-ils-commits mailing list