Ignore:
Timestamp:
03/13/10 00:37:22 (2 years ago)
Author:
nuxwin
Message:
  • [MERGE] Latest omega-1.0.5 changes - part I
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/tools/webmail/plugins/msg_flags/make_release.sh

    r1904 r2693  
    44# Generic shell script for building SquirrelMail plugin release 
    55# 
    6 # Copyright (c) 2004-2008 Paul Lesniewski <paul@squirrelmail.org> 
     6# Copyright (c) 2004-2009 Paul Lesniewski <paul@squirrelmail.org> 
    77# Licensed under the GNU GPL. For full terms see the file COPYING. 
    88# 
     
    104104   exit 3 
    105105fi 
    106 if [ ! -e INSTALL ]; then 
    107    echo  
    108    echo "No INSTALL file found.  Please create before making release" 
     106if [ ! -e docs/README ]; then 
     107   echo 
     108   echo "No docs/README file found.  Please create before making release" 
     109   echo 
     110   exit 3 
     111fi 
     112if [ ! -e docs/INSTALL ]; then 
     113   echo  
     114   echo "No docs/INSTALL file found.  Please create before making release" 
    109115   echo 
    110116   exit 4 
    111117fi 
    112118# Translated strings are actually in the core 
    113 #if [ ! -e getpot ]; then 
    114 #   echo 
    115 #   echo "No getpot file found.  Please create before making release" 
     119#if [ ! -e locale/getpot ]; then 
     120#   echo  
     121#   echo "No locale/getpot file found.  Please create before making release" 
    116122#   echo 
    117123#   exit 5 
    118124#fi 
    119 if [ ! -e $PACKAGE.pot ]; then 
    120    echo 
    121    echo "No $PACKAGE.pot file found.  Please create before making release" 
     125if [ ! -e locale/$PACKAGE.pot ]; then 
     126   echo 
     127   echo "No locale/$PACKAGE.pot file found.  Please create before making release" 
    122128   echo 
    123129   exit 5 
     
    128134# just copy index.php and COPYING automatically if not found 
    129135# 
    130 if [ ! -e COPYING ]; then 
    131    echo "No COPYING file found.  Grabbing one from ../../" 
    132    cp ../../COPYING . 
     136if [ ! -e docs/COPYING ]; then 
     137   echo "No docs/COPYING file found.  Grabbing one from ../../" 
     138   cp ../../COPYING ./docs/ 
    133139fi 
    134140if [ ! -e index.php ]; then 
    135141   echo "No index.php file found.  Grabbing one from ../" 
    136142   cp ../index.php . 
     143fi 
     144if [ ! -e docs/index.php ]; then 
     145   echo "No docs/index.php file found.  Grabbing one from ../" 
     146   cp ../index.php ./docs/ 
     147fi 
     148if [ ! -e locale/index.php ]; then 
     149   echo "No locale/index.php file found.  Grabbing one from ../" 
     150   cp ../index.php ./locale/ 
     151fi 
     152 
     153 
     154 
     155# Make our own docs/.htaccess and locale/.htaccess if needed 
     156# 
     157if [ ! -e docs/.htaccess ]; then 
     158   echo "No docs/.htaccess file found.  Creating..." 
     159   echo "Deny from All" > ./docs/.htaccess 
     160fi 
     161if [ ! -e locale/.htaccess ]; then 
     162   echo "No locale/.htaccess file found.  Creating..." 
     163   echo "Deny from All" > ./locale/.htaccess 
    137164fi 
    138165 
     
    217244# Build tar command; exclude config and other irrelevant files  
    218245# 
    219 TAR_COMMAND="tar -c -z -v --exclude CVS" 
     246TAR_COMMAND="tar -c -z -v --exclude CVS --exclude .svn" 
    220247J=0 
    221248while [ "$J" -lt ${#CONFIG_FILES[@]} ]; do 
Note: See TracChangeset for help on using the changeset viewer.