Commit 022a139e authored by Scott Deboy's avatar Scott Deboy

Spitting delibtoolize into separate functions

parent b462cd7e
#!/bin/bash -e
function deLibToolize {
if $1 ; then
echo "Replacing .la references with .so in *-uninstalled.pc files to make WebKit builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\(libgst.\+\).la$/\.libs\/\1\.so/' {} \;
else
echo "Replacing .so references with .la in *-uninstalled.pc files to make CVP2 builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\.libs\/\(libgst.\+\).so$/\1\.la/' {} \;
fi
echo "Replacing .la references with .so in *-uninstalled.pc files to make WebKit builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\(libgst.\+\).la$/\.libs\/\1\.so/' {} \;
}
function libToolize {
echo "Replacing .so references with .la in *-uninstalled.pc files to make CVP2 builds possible"
find . -name '*-uninstalled.pc' -exec sed -i -e 's/\.libs\/\(libgst.\+\).so$/\1\.la/' {} \;
}
function setBranch {
......@@ -83,7 +83,11 @@ while true; do
done
if $LIBTOOL_CHANGE_ONLY ; then
deLibToolize $DELIBTOOLIZE
if $DELIBTOOLIZE
deLibToolize
else
libToolize
fi
exit
fi
......@@ -159,7 +163,7 @@ name=${PWD##*/}
# Restore libtoolized pkgconfig files
echo Restoring libtoolized pkgconfig files
deLibToolize false
libToolize
for module in ${GST_MODULES[@]} ; do
unset MODULE_BRANCH
......@@ -255,7 +259,7 @@ done
# De-libtoolize to make these link against WebKit
if $DELIBTOOLIZE ; then
deLibToolize true
deLibToolize
fi
echo "Build successful!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment