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

BSD or OSX user ? Can you test this?




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


--
Håvard Sørli - http:/www.anix.no