Snort_AIPreproc/build.sh

22 lines
387 B
Bash
Raw Normal View History

2010-08-14 14:30:41 +02:00
#!/bin/sh
OUTDIR=${HOME}/local/snort/lib/snort_dynamicpreprocessor
LIBSF=libsf_ai_preproc
make clean
make
chmod +x ./${LIBSF}.la
cp ./${LIBSF}.la ${OUTDIR}
cp .libs/${LIBSF}.a ${OUTDIR}
cp .libs/${LIBSF}.so.0.0.0 ${OUTDIR}
cd ${OUTDIR}
if [ ! -f ${LIBSF}.so.0 ]; then
ln -sf ${LIBSF}.so.0.0.0 ${LIBSF}.so.0
fi
if [ ! -f ${LIBSF}.so ]; then
ln -sf ${LIBSF}.so.0.0.0 ${LIBSF}.so
fi