diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-07-12 09:14:46 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-07-12 09:14:46 +0000 |
commit | 8a9f232945f6ec241470513933baf6d72d256a06 (patch) | |
tree | 01c03798a9850c55f88a3e34db706a8786040482 /do | |
parent | 62918b434f4f3c809505715d1d92c402110ab230 (diff) | |
download | zabbix-8a9f232945f6ec241470513933baf6d72d256a06.tar.gz zabbix-8a9f232945f6ec241470513933baf6d72d256a06.tar.xz zabbix-8a9f232945f6ec241470513933baf6d72d256a06.zip |
zabbix-1.2_dev integration
git-svn-id: svn://svn.zabbix.com/trunk@3038 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'do')
-rwxr-xr-x | do | 68 |
1 files changed, 46 insertions, 22 deletions
@@ -7,6 +7,7 @@ # Eugene Grigorjev # +win2nix="no" premake="no" copy="no" tgz="no" @@ -23,24 +24,25 @@ def="--enable-agent --enable-server --with-mysql --with-ldap --with-net-snmp" for cmd do case "$cmd" in - copy ) copy="yes"; noparam=1;; - cpy ) copy="yes"; noparam=1;; - pre ) premake="yes"; noparam=1;; - premake ) premake="yes"; noparam=1;; - conf ) configure="yes"; noparam=1;; - config ) configure="yes"; noparam=1;; - configure ) configure="yes"; noparam=1;; - make ) domake="yes"; noparam=1;; - test ) dotest="yes"; noparam=1;; - tar ) tgz="yes"; noparam=1;; - nocat ) docat="no"; noparam=1;; - cat ) docat="yes"; noparam=1;; - def ) config_param="$config_param $def";; - --enable-* ) config_param="$config_param $cmd";; - --with-* ) config_param="$config_param $cmd";; - --prefix=* ) config_param="$config_param $cmd";; - help ) help="yes";; - h ) help="yes";; + win2nix ) win2nix="yes"; noparam=1;; + copy ) copy="yes"; noparam=1;; + cpy ) copy="yes"; noparam=1;; + pre ) premake="yes"; noparam=1;; + premake ) premake="yes"; noparam=1;; + conf ) configure="yes"; noparam=1;; + config ) configure="yes"; noparam=1;; + configure ) configure="yes"; noparam=1;; + make ) domake="yes"; noparam=1;; + test ) dotest="yes"; noparam=1;; + tar ) tgz="yes"; noparam=1;; + nocat ) docat="no"; noparam=1;; + cat ) docat="yes"; noparam=1;; + def ) config_param="$config_param $def";; + --enable-* ) config_param="$config_param $cmd";; + --with-* ) config_param="$config_param $cmd";; + --prefix=* ) config_param="$config_param $cmd";; + help ) help="yes";; + h ) help="yes";; * ) echo "$0: ERROR: uncnown parameter \"$cmd\""; help="yes"; @@ -50,9 +52,23 @@ if [ "$help" = "yes" ] || [ $noparam = 0 ] then echo echo "Usage:" - echo " $0 [copy|cpy] [premake|pre] [configure|config|conf] [def] [make] [test] [tar] [cat] [nocat] [--enable-*] [--with-*]" - echo - echo " def = $def" + echo " $0 [commands] [options]" + echo + echo " Commands:" + echo " [win2nix] - convers win EOL [\\r\\n] to nix EOL [\\r]" + echo " [copy|cpy] - copy automake files" + echo " [premake|pre] - make configuration file" + echo " [configure|config|conf] - configure make files" + echo " [make] - make applications" + echo " [test] - test applications" + echo " [tar] - create ../zabbix.tar.gz of this folder" + echo + echo " Options:" + echo " [def] - default configuration \"$def\"" + echo " [cat] - cat WARRNING file at the end (defaut - ON)" + echo " [nocat] - do not cat WARRNING file" + echo " [--enable-*] - option for configuration" + echo " [--with-*] - option for configuration" echo echo "Examples:" echo " $0 conf def make test - compyle, test, and sow report" @@ -64,7 +80,8 @@ fi if [ "$copy" = "yes" ] || [ $premake = "yes" ] || [ $configure = "yes" ] || [ $domake = "yes" ] || - [ $dotest = "yes" ] || [ $tgz = "yes" ] + [ $dotest = "yes" ] || [ $tgz = "yes" ] || + [ "$win2nix" = "yes" ] then cleanwarnings="yes" fi @@ -74,6 +91,13 @@ then rm -f WARNINGS fi +if [ "$win2nix" = "yes" ] +then + echo "Replacing..." + echo "Replacing..." >> WARNINGS + find ./ -name "*.[hc]" -exec vi "+%s/\\r$//" "+wq" "-es" {} ';' -print 2>> WARNINGS +fi + if [ "$premake" = "yes" ] then echo "Pre-making..." |