summaryrefslogtreecommitdiffstats
path: root/do
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-28 14:47:46 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-28 14:47:46 +0000
commit504b0aede0d8a6f19f2762c019551e0b7ce360a5 (patch)
tree4d1c4f89d579dd84ac46ac27c90d471f3897fee1 /do
parentd2806723ee830851be70fe89b3215e16715abdd3 (diff)
downloadzabbix-504b0aede0d8a6f19f2762c019551e0b7ce360a5.tar.gz
zabbix-504b0aede0d8a6f19f2762c019551e0b7ce360a5.tar.xz
zabbix-504b0aede0d8a6f19f2762c019551e0b7ce360a5.zip
*** empty log message ***
git-svn-id: svn://svn.zabbix.com/trunk@2376 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'do')
-rwxr-xr-xdo55
1 files changed, 38 insertions, 17 deletions
diff --git a/do b/do
index 8a5af5da..41377170 100755
--- a/do
+++ b/do
@@ -5,26 +5,43 @@ copy="no"
tgz="no"
configure="no"
domake="no"
-config_param="--enable-agent"
+config_param="--enable-agent --prefix=`pwd`"
dotest="no"
cleanwarnings="no"
+docat="yes"
for cmd
do
case "$cmd" in
- "copy" ) copy="yes" cleanwarnings="yes";;
- "pre" ) premake="yes" cleanwarnings="yes";;
- "premake" ) premake="yes" cleanwarnings="yes";;
- "conf" ) configure="yes" cleanwarnings="yes";;
- "config" ) configure="yes" cleanwarnings="yes";;
- "configure" ) configure="yes" cleanwarnings="yes";;
- "make" ) domake="yes" cleanwarnings="yes";;
- "test" ) dotest="yes" cleanwarnings="yes";;
- "tar" ) tgz="yes" cleanwarnings="yes";;
- * ) config_param="$config_param %cmd"
+ copy ) copy="yes";;
+ pre ) premake="yes";;
+ premake ) premake="yes";;
+ conf ) configure="yes";;
+ config ) configure="yes";;
+ configure ) configure="yes";;
+ make ) domake="yes";;
+ test ) dotest="yes";;
+ tar ) tgz="yes";;
+ nocat ) docat="no";;
+ --enable-* ) config_param="$config_param %cmd";;
+ --with-* ) config_param="$config_param %cmd";;
+ * )
+ echo "$0: ERROR: uncnown parameter \"$cmd\"";
+ echo
+ echo "Usage:"
+ echo " $0 [copy] [premake|pre] [configure|config|conf] [make] [test] [tar] [nocat] [--enable-*] [--with-*]"
+ echo
+ exit 1;;
esac
done
+if [ "$copy" = "yes" ] || [ $premake = "yes" ] ||
+ [ $configure = "yes" ] || [ $domake = "yes" ] ||
+ [ $dotest = "yes" ] || [ $tgz = "yes" ]
+then
+ cleanwarnings="yes"
+fi
+
if [ "$cleanwarnings" = "yes" ]
then
rm -f WARNINGS
@@ -60,7 +77,7 @@ then
echo "Configuring..." >> WARNINGS
export CFLAGS="-Wall"
#export CFLAGS="-Wall -pedantic"
- ./configure "$config_param" --prefix=`pwd` 2>>WARNINGS
+ ./configure $config_param 2>>WARNINGS
fi
if [ "$domake" = "yes" ]
@@ -91,8 +108,12 @@ then
tar cvzf zabbix.tar.gz zabbix
fi
-echo
-echo WARNINGS
-echo "-----------------------------------"
-cat WARNINGS
-echo "-----------------------------------"
+if [ "$docat" = "yes" ]
+then
+ echo
+ echo WARNINGS
+ echo "-----------------------------------"
+ cat WARNINGS
+ echo "-----------------------------------"
+fi
+