[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BSD or OSX user ? Can you test this?



On Thu, Nov 29, 2012 at 12:07:04PM +0100, H?vard S?rli wrote:
> 
> Chris made a nice perl version of prepare-company-database.sh
> 
> Just to cler off the getop case in the prepare-company-database.sh I 
> made a version with a test and info text if you do not run the GNU 
> getopt version.
> 
> 
> # Test getopt version. This script use the GNU 'getopt' version.
> getopt -T > /dev/null
> if [ $? -eq 0 ]; then
>      # Original getopt is available
>      echo "This script need the GNU enhanced getopt to work"
>      echo "Use prepare-company-database.pl on your platform"
>      exit 0
> fi
> 
> 
> Can someone test that this fix works on BSD / OSX ?
> 
> version with the test:
> http://www.anix.no/tmp/prepare-company-database.sh


OpenBSD:

freedom$ /bin/sh prepare-company-database.sh
This script need the GNU enhanced getopt to work
Use prepare-company-database.pl on your platform

Chris Bennett