Clean up Makefile "warning" clutter when makeopts doesn't exist.
[asterisk/asterisk.git] / build_tools / make_linker_version_script
1 #!/bin/sh
2
3 AWK=${AWK:-awk}
4
5 test -f ${1}.exports.in && ${AWK} "{sub(\"LINKER_SYMBOL_PREFIX\", \"${2}\"); print;}" ${1}.exports.in > ${1}.exports && exit 0
6 test -f ${1}.exports.in || rm -f ${1}.exports && cp ${3}/default.exports ${1}.exports && exit 0