asterisk/build_tools/make_linker_version_script

7 lines
251 B
Plaintext
Raw Permalink Normal View History

2023-05-25 18:45:57 +00:00
#!/bin/sh
AWK=${AWK:-awk}
test -f ${1}.exports.in && ${AWK} "{sub(\"LINKER_SYMBOL_PREFIX\", \"${2}\"); print;}" ${1}.exports.in > ${1}.exports && exit 0
test -f ${1}.exports.in || rm -f ${1}.exports && cp ${3}/default.exports ${1}.exports && exit 0