Changeset 749


Ignore:
Timestamp:
11/25/12 15:22:22 (2 years ago)
Author:
ofer
Message:

Build does no longer have a debug version option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/build.sh

    r592 r749  
    66 
    77VERSION=$1; 
    8 DEBUG=$2; 
    9 ZIPME=$3; 
    10 COPYTO=$4; 
     8ZIPME=$2; 
     9COPYTO=$3; 
    1110 
    1211if [ -z $VERSION ]; then 
    1312  echo "Must enter a version number !!!" 
    14   echo "Usage: $0 0.1.0 [[debug] [zip] [targetdir]]" 
     13  echo "Usage: $0 0.1.0 [[zip] [targetdir]]" 
    1514  exit 
    1615fi 
     
    6059#Add php files while removing logging operations 
    6160# 
    62 if [ "$DEBUG" != 'debug' ]; then 
    63   echo "Adding .php files (without logging)" 
     61#if [ "$DEBUG" != 'debug' ]; then 
     62#  echo "Adding .php files (without logging)" 
     63#  for file in `find . -maxdepth 4 -iname '*.php'`; do  
     64#    sed "s/logger.*;//;s/require_once.*(\"core.logging.*//;s/require_once.*(\'logging.*//;s/require_once.*(\"logging.*//;s/%VERSION%/$VERSION/;s/%DATE%/$DATE/;s/%YEAR%/$YEAR/;" $file > $TRANSPOSH_DIR/$file 
     65#    echo "added $file" 
     66#  done; 
     67#else 
     68  echo "Adding .php files (with logging)" 
    6469  for file in `find . -maxdepth 4 -iname '*.php'`; do  
    65     sed "s/logger.*;//;s/require_once.*(\"core.logging.*//;s/require_once.*(\'logging.*//;s/require_once.*(\"logging.*//;s/%VERSION%/$VERSION/;s/%DATE%/$DATE/;s/%YEAR%/$YEAR/;" $file > $TRANSPOSH_DIR/$file 
     70    sed "s/%VERSION%/$VERSION/;s/%DATE%/$DATE/;s/%YEAR%/$YEAR/;" $file > $TRANSPOSH_DIR/$file 
     71#    cp $file $TRANSPOSH_DIR/$file 
    6672    echo "added $file" 
    6773  done; 
    68 else 
    69   echo "Adding .php files (with logging)" 
    70   for file in `find . -maxdepth 4 -iname '*.php'`; do  
    71     cp $file $TRANSPOSH_DIR/$file 
    72     echo "added $file" 
    73   done; 
    74 fi 
     74#fi 
    7575echo 
    7676# 
     
    8989# Remove logging.php 
    9090# 
    91 if [ "$DEBUG" != 'debug' ]; then 
    92   rm $TRANSPOSH_DIR/core/logging.php 
    93   echo "removed logging.php" 
    94   rm $TRANSPOSH_DIR/core/FirePHP.class.php 
    95   echo "removed FirePHP.class.php" 
    96 else 
     91#if [ "$DEBUG" != 'debug' ]; then 
     92#  rm $TRANSPOSH_DIR/core/logging.php 
     93#  echo "removed logging.php" 
     94#  rm $TRANSPOSH_DIR/core/FirePHP.class.php 
     95#  echo "removed FirePHP.class.php" 
     96#else 
    9797  rm $TRANSPOSH_DIR/screenshot*.png 
    9898  echo "removed screenshots" 
    99 fi 
     99#fi 
    100100 
    101 if [ "$DEBUG" != 'debug' ]; then 
     101#if [ "$DEBUG" != 'debug' ]; then 
    102102  echo "Minify .js files" 
    103103  for file in `find ./js -maxdepth 3 -iname '*.js' ! -name keyboard.js ! -name lazy.js ! -name jquery.ui.menu.js`; do 
     
    130130    java -jar /root/yui/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar $file -o $TRANSPOSH_DIR/$file 
    131131  done; 
    132 fi 
     132#fi 
    133133 
    134134# Remove .svn dirs 
     
    150150 
    151151# 
    152 #Copy to targer 
     152#Copy to target 
    153153# 
    154154 
Note: See TracChangeset for help on using the changeset viewer.