Sunday, December 28, 2008

./configure picks up wrong packages

To set the correct package set PKG_CONFIG_PATH so that it picks up right files
Example:
PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure

Monday, December 15, 2008

creating bash variable which has newline

Normally bash does not process \n the way c does.
myVar="Hi there.\n Me Here";
echo "$myVar";

above will just print
Hi there.\n Me Here

Use for c type of interpretation
so changing above script to
myVar="Hi there."$'\n'" Me Here";
echo "$myVar";

This will print
Hi there.
Me Here