From 75e5a6dcfc20a582a4b4653a25c074f4263dd7dc Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sun, 25 Nov 2012 20:34:12 -0200 Subject: [PATCH] fixes my wrong commit - fixes #1423 --- .gitignore | 1 + custom/totvs.zsh | 124 ----------------------------------------------- 2 files changed, 1 insertion(+), 124 deletions(-) delete mode 100644 custom/totvs.zsh diff --git a/.gitignore b/.gitignore index 4cb1720e..51a5ee6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ locals.zsh log/.zsh_history projects.zsh +custom/* !custom/example !custom/example.zsh *.swp diff --git a/custom/totvs.zsh b/custom/totvs.zsh deleted file mode 100644 index 883bdf7d..00000000 --- a/custom/totvs.zsh +++ /dev/null @@ -1,124 +0,0 @@ -# -# Just some utilities for use in ecm development. -# - -setopt rmstarsilent - -HOME="/home/carlos" -ECM_WS="$HOME/totvs/ws" -ECM_JBOSS="$HOME/Public/ecm/JBoss-7.1.1" -ECM_PORT="8080" -VOLDEMORT=$ECM_WS/voldemort -ECM=$ECM_WS/ecm -INSTALLER="n" -DRY_CLEAN="n" - -# fuckin aliases -alias ecmu=ecmup -alias ecmb=ecmbuild -alias ecmc=ecmclean -alias ecms=ecmstart -alias ecmo=ecmstop -alias ecmi=ecminstall -alias ecmri=ecmruninstall -alias ecm=ecmfull -alias e='MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m -DskipTests=true" ecm' - - -# update ecm -ecmup() { - echo "update all the things!" - cd $VOLDEMORT && svn up - cd $ECM && svn up -} - -# build it! -ecmbuild() { - echo "build? no problem sir..." - cd $VOLDEMORT && mvncie && \ - cd $VOLDEMORT/social-ecm && \ - cd $VOLDEMORT/wcm && mvncie && \ - cd $ECM/wecmpackage && mvncie && \ - cd $VOLDEMORT/ecm && mvncie && \ - ecminstall -} - -# gen installer or cp wars... -ecminstall() { - case $@ in - -*i*) - INSTALLER=y - ;; - esac - if [[ "$INSTALLER" == "y" ]]; then - echo "generating installer..." - cd $VOLDEMORT/ecm/installer - mvnci -am -Drun=installer -DLinux64=true -DappServer=jboss - else - echo "cpying wars..." - cd $VOLDEMORT/ecm/build && mvnci && \ - cd $VOLDEMORT/wcm/build && mvnci && \ - cd $VOLDEMORT/social-ecm/build && mvnci - fi -} - -# clean jboss trash folders -ecmclean() { - echo "cleaning jboss shit" - case $@ in - -*d*) - DRY_CLEAN="y" - ;; - esac - if [[ "$DRY_CLEAN" == "y" ]]; then - rm -rf $ECM_JBOSS/standalone/deployments/*.{failed,deployed,dodeploy,deploying} - else - rm -rf $ECM_JBOSS/standalone/deployments/* - fi - rm -rf $ECM_JBOSS/standalone/{log,tmp,data} - rm -rf $ECM_JBOSS/solr/zoo_data -} - -# start jboss server -ecmstart() { - # why shall I start server if i just gen a installer? - if [[ "$INSTALLER" == "y" ]]; then - ecmruninstall - else - echo "starting jboss" - cd $ECM_JBOSS/bin - JAVA_OPTS="-Xmx2048m -XX:MaxPermSize=512m -DzkRun -Dbootstrap_conf=true" ./standalone.sh - fi -} - -ecmruninstall() { - echo "ok, lets install this crap :)" - cd $VOLDEMORT/ecm/installer/izpack/target - if [[ -f ECM-Linux64.zip ]]; then - mkdir -p /tmp/ecmi - rm -rf /tmp/ecmi/* - unzip ECM-Linux64 -d /tmp/ecmi/ - cd /tmp/ecmi/ - chmod a+x ECM-Installer-64.sh - ./ECM-Installer-64.sh - else - echo "uhoh, installer doesnt exist ($VOLDEMORT/ecm/installer/izpack/target/ECM-Linux64.zip)" - fi -} - -# stop jboss (usually on 8080) -ecmstop() { - echo "kill jboss (or whatever you are running on 8080" - fuser -k $ECM_PORT/tcp -} - -# do all the things -ecmfull() { - echo "serious business here. let's have a coffee.." - ecmstop - ecmclean - ecmup - ecmbuild && ecmstart -} - -