summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-03 13:31:13 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-03 13:31:13 -0400
commit069552a81dfe0fe621bb5eed361ecfe1cccacc95 (patch)
tree853dae21c1c63778d4e4a7f492105669bd541e31 /acprep
parent43c4636d9d3a8a3bebc6565b2f1fdd1aebe9849a (diff)
downloadfork-ledger-069552a81dfe0fe621bb5eed361ecfe1cccacc95.tar.gz
fork-ledger-069552a81dfe0fe621bb5eed361ecfe1cccacc95.tar.bz2
fork-ledger-069552a81dfe0fe621bb5eed361ecfe1cccacc95.zip
Fixed the auto-discovery of the Boost suffix in acprep.
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep8
1 files changed, 5 insertions, 3 deletions
diff --git a/acprep b/acprep
index 8055a268..0e3a7229 100755
--- a/acprep
+++ b/acprep
@@ -33,9 +33,11 @@ for lib in $(ls -1 /opt/local/lib/libboost_regex*.a \
| sort -r)
do
lib=$(basename "$lib")
- BOOST_SUFFIX=$(echo "$lib" | sed 's/libboost_regex-//' | sed 's/\.a//')
- echo "Discovered Boost suffix: --boost $BOOST_SUFFIX"
- BOOST_SUFFIX="-$BOOST_SUFFIX"
+ suffix=$(echo "$lib" | sed 's/libboost_regex-//' | sed 's/\.a//')
+ if [[ "$suffix" != "libboost_regex" ]]; then
+ echo "Discovered Boost suffix: --boost $suffix"
+ BOOST_SUFFIX="-$suffix"
+ fi
break
done