diff options
author | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-07-15 10:36:51 +0300 |
---|---|---|
committer | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-07-15 10:36:51 +0300 |
commit | 0f4556fc2343dc0ade0bb1e0d1fc6f85770d77af (patch) | |
tree | e26b6cb64f8ac4625c45baa40834fe51dc25c4f8 /bootstrap.sh | |
download | obmc-sila-snmp-0f4556fc2343dc0ade0bb1e0d1fc6f85770d77af.tar.xz |
First commit: Sila SNMP Sub Agent and configuration manager
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..5e9e7e5 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +PREFIX=$(readlink -f "${0%/*}") +AUTOCONF_FILES="aclocal.m4 autom4te.cache compile \ + config.guess config.sub configure depcomp \ + install-sh ltmain.sh Makefile.in missing \ + ar-lib config.h.in" + +TARGET=${PREFIX}/sila/.libs/sila.so + +case $1 in + clean) + cd ${PREFIX} + test -f Makefile && make maintainer-clean + for file in ${AUTOCONF_FILES}; do + find -name "$file" | xargs -r rm -rf + done + exit 0 + ;; +esac + +autoreconf --install ${PREFIX} +echo 'Run: "./configure ${CONFIGURE_FLAGS} && make"' |