aboutsummaryrefslogtreecommitdiffhomepage
path: root/darwinfixlib.sh
blob: 6196ebd8aaac467aa8e8437775b02200206fa4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if [ `uname -s` = 'Darwin' ]; then
  echo "Fixing libs with ranlib for Darwin (MacOSX)"
  for i in $* ; do
    if (echo $i | grep \\.a) >/dev/null 2>&1; then
      echo "ranlib $i"
      (ranlib $i) >/dev/null 2>&1
    fi
  done
fi
exit 0