[88862] users/pixilla/scripts/mp-shared-objects

pixilla at macports.org pixilla at macports.org
Fri Jan 13 12:19:33 PST 2012


Revision: 88862
          http://trac.macports.org/changeset/88862
Author:   pixilla at macports.org
Date:     2012-01-13 12:19:33 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
pixilla/scripts:
- Fix typos.

Modified Paths:
--------------
    users/pixilla/scripts/mp-shared-objects

Modified: users/pixilla/scripts/mp-shared-objects
===================================================================
--- users/pixilla/scripts/mp-shared-objects	2012-01-13 19:25:22 UTC (rev 88861)
+++ users/pixilla/scripts/mp-shared-objects	2012-01-13 20:19:33 UTC (rev 88862)
@@ -20,7 +20,7 @@
     -p      Path or Port (requires -m) to check
     -m      Use -p as a port name rather then a path
     -c      Check if shared library exists, print "${eError}" if it does not
-    -q      Quite, only print errors, implies -c
+    -q      Quiet, only print errors, implies -c
     -s      Stop on errors
 
 EOF
@@ -28,7 +28,7 @@
 
 [ -z $TYPE ] && TYPE=PATH
 [ -z $CHECK_EXISTS ] && CHECK_EXISTS=
-[ -z $QUITE ] && QUITE=
+[ -z $QUIET ] && QUIET=
 [ -z $STOP ] && STOP=
 
 while getopts "hp:mcqs" OPTION
@@ -48,7 +48,7 @@
             CHECK_EXISTS=yes
             ;;
         q)
-            QUITE=yes
+            QUIET=yes
             CHECK_EXISTS=yes
             ;;
         s)
@@ -85,19 +85,19 @@
     fi
     if [ ! -d "${FILES[$fc]}" ]
     then    
-        SHAREDLIBRARYS=( $(otool -XL "${FILES[$fc]}" | sed -e "s/^Archive.*//" | tr -d '\t' | awk '{print $1}') )
-        if [[ ${#SHAREDLIBRARYS[@]} -gt 0 ]]
+        SHAREDLIBRARIES=( $(otool -XL "${FILES[$fc]}" | sed -e "s/^Archive.*//" | tr -d '\t' | awk '{print $1}') )
+        if [[ ${#SHAREDLIBRARIES[@]} -gt 0 ]]
         then
-            [ -z $QUITE ] && echo "${FILES[$fc]}"
-            for (( sc = 0 ; sc < ${#SHAREDLIBRARYS[@]} ; sc++ ))
+            [ -z $QUIET ] && echo "${FILES[$fc]}"
+            for (( sc = 0 ; sc < ${#SHAREDLIBRARIES[@]} ; sc++ ))
             do
-                if [ ! -f "${SHAREDLIBRARYS[$sc]}" ]
+                if [ ! -f "${SHAREDLIBRARIES[$sc]}" ]
                 then
-                    [ -n $QUITE ] && echo "${FILE[$fc]}"
-                    echo "SHAREDLIBRARY ${eError}: ${SHAREDLIBRARYS[$sc]}"
+                    [ -n $QUIET ] && echo "${FILE[$fc]}"
+                    echo "SHAREDLIBRARY ${eError}: ${SHAREDLIBRARIES[$sc]}"
                     [ "${STOP}" == "yes" ] && break 2
                 else
-                    [ -z $QUITE ] && echo -e "\t${SHAREDLIBRARYS[$sc]}"
+                    [ -z $QUIET ] && echo -e "\t${SHAREDLIBRARIES[$sc]}"
                 fi
             done
         fi
@@ -106,5 +106,5 @@
 unset IFS
 unset NAME
 unset CHECK_EXISTS
-unset QUITE
+unset QUIET
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/9e80334f/attachment.html>


More information about the macports-changes mailing list