linkchecker/scripts/resources.sh
2005-12-17 19:22:04 +00:00

15 lines
322 B
Bash
Executable file

#!/bin/sh
# network device, change as appropriate
NETDEV=ppp0
if ifconfig $NETDEV | grep RUNNING > /dev/null; then
echo "--resource=network"
fi
if msgfmt -V > /dev/null 2>&1; then
echo "--resource=msgfmt"
fi
os=`python -c "import os; print os.name"`
if [ "x$os" = "xposix" ]; then
echo "--resource=posix"
fi