1 2set -x 3 4ls /home/travis/im/imagemagick-${IMAGEMAGICK_VERSION}/lib 5 6for arg in libMagickWand-6.Q16.so libMagickWand.so libMagickWand-7.Q16HDRI.so; do 7 filename="/home/travis/im/imagemagick-${IMAGEMAGICK_VERSION}/lib/${arg}" 8 if [ -f "$filename" ] 9 then 10 nm -gC "$filename" > ./util/symbols.magickwand.txt 11 fi 12done 13 14for arg in libMagickCore-6.Q16.so libMagickCore.so libMagickCore-7.Q16HDRI.so; do 15 filename="/home/travis/im/imagemagick-${IMAGEMAGICK_VERSION}/lib/${arg}" 16 if [ -f "$filename" ] 17 then 18 nm -gC "$filename" > ./util/symbols.magickcore.txt 19 fi 20done 21 22if [ ! -f ./util/symbols.magickwand.txt ]; then 23 echo "Failed to get symbols for magickwand" 24fi 25 26if [ ! -f ./util/symbols.magickcore.txt ]; then 27 echo "Failed to get symbols for magickcore" 28fi 29 30 31nm -gC ./modules/imagick.so > ./util/symbols.imagick.txt 32 33# debugging only 34# cat ./util/symbols.magickwand.txt 35# cat ./util/symbols.magickcore.txt 36# cat ./util/symbols.imagick.txt 37 38php ./util/checkSymbols.php 39