[Openvas-commits] r6245 - trunk/tools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Dec 23 10:32:55 CET 2009
Author: felix
Date: 2009-12-23 10:32:55 +0100 (Wed, 23 Dec 2009)
New Revision: 6245
Modified:
trunk/tools/build-all-svn-3-all.sh
Log:
Slightly improved and corrected build script. Desired prefix can be passed as argument to script.
Modified: trunk/tools/build-all-svn-3-all.sh
===================================================================
--- trunk/tools/build-all-svn-3-all.sh 2009-12-23 09:13:42 UTC (rev 6244)
+++ trunk/tools/build-all-svn-3-all.sh 2009-12-23 09:32:55 UTC (rev 6245)
@@ -2,9 +2,23 @@
# Author Felix Wolfsteller, heavily based on work by
# (C) Vlatko Kosturjak. GPL v2
+# sh build-all-svn-3-all.sh /home/myprefix
+#
+# will attempt to install libraries, scanner, client, manager and
+# administrator to /home/myprefix.
+# The stdout output of configure/cmake and make will be redirected to e.g.
+# openvas-libraries/make-openvas-libraries.log.
+# Call this script in the parent folder of openvas-libraries,
+# openvas-scanner etc (e.g. in a svn working copy from trunk).
+# This script will not abort gracefully if something went wrong.
+
OPENVASPREFIX=`date +%F`
-# Adjust to your needs:
+# Adjust prefix to your needs in script:
OPENVASPATH=/opt/openvas-svn-$OPENVASPREFIX
+# Or pass prefix as argument to script
+if [ $# = 1 ] ; then
+ OPENVASPATH=$1
+fi
echo "o Installing OpenVAS to $OPENVASPATH"
@@ -16,14 +30,14 @@
# Autoconf based
build_ac_module()
{
- cd $1 && ./configure --prefix=$OPENVASPATH > ../configure-$i.log && make > ../make-$i.log && make install > ../make-install-$i.log && cd .. && return 0
+ cd $1 && ./configure --prefix=$OPENVASPATH > ../configure-$i.log && make > ../make-$i.log && make install > ../make-install-$1.log && cd .. && return 0
return $1
}
# Cmake based
build_cm_module()
{
- cd $1 && cmake -DCMAKE_INSTALL_PREFIX=$OPENVASPATH . > ../configure-$i.log && make > ../make-$i.log && make install > ../make-install-$i.log && cd .. && return 0
+ cd $1 && cmake -DCMAKE_INSTALL_PREFIX=$OPENVASPATH . > ../configure-$i.log && make > ../make-$1.log && make install > ../make-install-$i.log && cd .. && return 0
return $1
}
More information about the Openvas-commits
mailing list