]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Hard code localstatedir in the scripts. pkgconfig is too difficult to handle
authordlezcano <dlezcano>
Fri, 21 Nov 2008 18:20:48 +0000 (18:20 +0000)
committerdlezcano <dlezcano>
Fri, 21 Nov 2008 18:20:48 +0000 (18:20 +0000)
between 32bits and 64bits architecture and different pkgconfig conflict.

src/lxc/lxc-ls.in
src/lxc/lxc-ps.in

index b87a00c3ec1da0c4b834aa4b9f2b2c1caf8501ab..b00116b45af08191da7b50563186643a0c71f505 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
-lxcpath=$(PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --variable=localstatedir lxc)/lxc
+prefix=@prefix@
+lxcpath=@localstatedir@/lxc
 
 if [ ! -r $lxcpath ]; then
     exit 0
index 4bbbfe406a1b187d0dff8021357aa150e304aca4..a3439e9982b64d94b95036e80dc8f770a1777aa9 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # set -ex
-lxcpath=$(PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --variable=localstatedir lxc)/lxc
+
+prefix=@prefix@
+lxcpath=@localstatedir@/lxc
 
 if [ ! -r $lxcpath ]; then
     exit 0