From 71a591195618271973a12ae7ffaf288909481cbc Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 21 Mar 2007 10:54:54 +0000 Subject: Cleanups. APM battery info fixes for Linux 2.6. --- hardinfo2/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hardinfo2/configure') diff --git a/hardinfo2/configure b/hardinfo2/configure index 26ab11b3..1b43e8ca 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -24,7 +24,7 @@ PACKAGE=`basename ${PWD} | cut -d"-" -f1`; VERSION=`basename ${PWD} | cut -d"-" -f2`; if [ "$PACKAGE" == "$VERSION" ]; then - VERSION=$(printf "SVN_%d" $(svn -R info|grep Revision|cut -d: -f2|sort -n|tail -n1)) + VERSION=$(printf "SVN_%d" $(LC_ALL=C svn -R info|grep Revision|cut -d: -f2|sort -n|tail -n1)) RELEASE=0 else RELEASE=1 @@ -194,7 +194,7 @@ echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h echo "#define LIBPREFIX \"/usr/lib/hardinfo/\"" >> config.h if [ "$RELEASE" == "1" ]; then - echo "#define DEBUG(...) (void)" >> config.h + echo "#define DEBUG(...)" >> config.h else echo '#define DEBUG(msg,...) fprintf(stderr, "*** %s:%d (%s) *** " msg "\n", \' >> config.h echo ' __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)' >> config.h -- cgit v1.2.3