view darwinfixlib.sh @ 10600:3cf428b56cde

Set close-on-exec after newer open (in reset func). Patch by Andriy Gapon <agapon@cv-nj.com>
author alex
date Wed, 13 Aug 2003 21:04:15 +0000
parents 184f37880f90
children
line wrap: on
line source

#!/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