[110766] users/pixilla/scripts/mp-shared-objects
pixilla at macports.org
pixilla at macports.org
Thu Sep 5 07:42:55 PDT 2013
Revision: 110766
https://trac.macports.org/changeset/110766
Author: pixilla at macports.org
Date: 2013-09-05 07:42:55 -0700 (Thu, 05 Sep 2013)
Log Message:
-----------
users/pixilla/scripts:
- Add print arch option.
Modified Paths:
--------------
users/pixilla/scripts/mp-shared-objects
Modified: users/pixilla/scripts/mp-shared-objects
===================================================================
--- users/pixilla/scripts/mp-shared-objects 2013-09-05 14:42:01 UTC (rev 110765)
+++ users/pixilla/scripts/mp-shared-objects 2013-09-05 14:42:55 UTC (rev 110766)
@@ -23,6 +23,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
+ -a Print arch
-q Quiet, only print errors, implies -c
-s Stop on errors
@@ -31,6 +32,7 @@
[ -z $TYPE ] && TYPE=PATH
[ -z $CHECK_EXISTS ] && CHECK_EXISTS=
+[ -z $PRINT_ARCH ] && PRINT_ARCH=
[ -z $QUIET ] && QUIET=
[ -z $STOP ] && STOP=
@@ -50,6 +52,9 @@
c)
CHECK_EXISTS=yes
;;
+ a)
+ PRINT_ARCH=yes
+ ;;
q)
QUIET=yes
CHECK_EXISTS=yes
@@ -92,6 +97,7 @@
if [[ ${#SHAREDLIBRARIES[@]} -gt 0 ]]
then
[ -z $QUIET ] && echo "${FILES[$fc]}"
+ [ -z $PRINT_ARCH ] && lipo -info "${FILES[$fc]}"
for (( sc = 0 ; sc < ${#SHAREDLIBRARIES[@]} ; sc++ ))
do
if [ ! -f "${SHAREDLIBRARIES[$sc]}" ]
@@ -101,6 +107,7 @@
[ "${STOP}" == "yes" ] && break 2
else
[ -z $QUIET ] && echo -e "\t${SHAREDLIBRARIES[$sc]}"
+ [ -z $PRINT_ARCH ] && lipo -info "${SHAREDLIBRARIES[$sc]}"
fi
done
fi
@@ -109,5 +116,6 @@
unset IFS
unset NAME
unset CHECK_EXISTS
+unset PRINT_ARCH
unset QUIET
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130905/7e89c8d7/attachment.html>
More information about the macports-changes
mailing list