22 lines
847 B
Bash
Executable File
22 lines
847 B
Bash
Executable File
Replace () {
|
|
CheckCommand="grep -ci '$1' Makefile"
|
|
CheckCount=$(eval $CheckCommand)
|
|
if [ "$CheckCount" -gt 0 ]; then
|
|
echo "Requested '$1' to '$2', found - replacing.."
|
|
ReplaceCommand="sed -i 's/$1/$2/g' Makefile"
|
|
eval $ReplaceCommand
|
|
else
|
|
echo "Skipping '$1' to '$2'"
|
|
fi
|
|
}
|
|
|
|
Replace '\-llzma' '\/usr\/lib\/x86_64\-linux\-gnu\/liblzma\.a'
|
|
Replace '\-lz' '\/usr\/lib\/x86_64\-linux\-gnu\/libz\.a'
|
|
Replace '\-lssl' '\/usr\/lib\/x86_64\-linux\-gnu\/libssl\.a'
|
|
Replace '\-lcrypto' '\/usr\/lib\/x86_64\-linux\-gnu\/libcrypto\.a'
|
|
Replace '\-lexif' '\/usr\/lib\/x86_64\-linux\-gnu\/libexif\.a'
|
|
Replace '\-lopusfile' '\/usr\/local\/lib\/libopusfile\.a'
|
|
Replace '\-lopus' '\/usr\/local\/lib\/libopus\.a'
|
|
Replace '\-lopenal' '\/usr\/local\/lib\/libopenal\.a'
|
|
Replace '\-logg' '\/usr\/local\/lib\/libogg\.a'
|