You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2012/05/23 10:41:28 UTC

svn commit: r1341789 - /incubator/syncope/committers/tools/verify-legal-files.sh

Author: ilgrosso
Date: Wed May 23 08:41:27 2012
New Revision: 1341789

URL: http://svn.apache.org/viewvc?rev=1341789&view=rev
Log:
Updating the tool for verifying L&N to latest decisions

Modified:
    incubator/syncope/committers/tools/verify-legal-files.sh

Modified: incubator/syncope/committers/tools/verify-legal-files.sh
URL: http://svn.apache.org/viewvc/incubator/syncope/committers/tools/verify-legal-files.sh?rev=1341789&r1=1341788&r2=1341789&view=diff
==============================================================================
--- incubator/syncope/committers/tools/verify-legal-files.sh (original)
+++ incubator/syncope/committers/tools/verify-legal-files.sh Wed May 23 08:41:27 2012
@@ -17,7 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-DIST_DIR=~/work/test
+DIST_DIR=~/work/syncope
 WORK_DIR=/tmp/verify
 
 rm -rf $WORK_DIR
@@ -34,8 +34,15 @@ for jarfile in `find $DIST_DIR -name '*.
     jar xvf $jarfile META-INF/NOTICE > /dev/null
     jar xvf $jarfile META-INF/DISCLAIMER > /dev/null
 
-    echo "LICENSE: "`diff -q $DIST_DIR/LICENSE META-INF/LICENSE`
-    echo "NOTICE: "`diff -q $DIST_DIR/NOTICE META-INF/NOTICE`
+    file_ext=`echo $jarfile|awk -F . '{print $NF}'`
+    if [ $file_ext == 'jar' ]; then
+	echo "LICENSE: "`diff -q $DIST_DIR/LICENSE META-INF/LICENSE`
+	echo "NOTICE: "`diff -q $DIST_DIR/NOTICE META-INF/NOTICE`
+    else
+	echo "LICENSE: "`diff -q $DIST_DIR/legal_ext/LICENSE META-INF/LICENSE`
+	echo "NOTICE: "`diff -q $DIST_DIR/legal_ext/NOTICE META-INF/NOTICE`
+    fi
+
     echo "DISCLAIMER: "`diff -q $DIST_DIR/DISCLAIMER META-INF/DISCLAIMER`
     echo