summaryrefslogtreecommitdiff
path: root/hardinfo2/configure
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-03-21 10:54:54 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-03-21 10:54:54 +0000
commit71a591195618271973a12ae7ffaf288909481cbc (patch)
tree68ea841f948f1351099dd470ba966edf42125047 /hardinfo2/configure
parentf7ab0cb977df0d6eba533a245c93da582b9f5f84 (diff)
Cleanups. APM battery info fixes for Linux 2.6.
Diffstat (limited to 'hardinfo2/configure')
-rwxr-xr-xhardinfo2/configure4
1 files changed, 2 insertions, 2 deletions
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