source: branches/feature-module-update/release.sh @ 16593

Revision 16593, 1.2 KB checked in by nanasess, 15 years ago (diff)

新規追加

  • Property svn:executable set to *
  • Property svn:keywords set to Id Revision Date
Line 
1#!/bin/sh
2
3CURRENT_DIR=`pwd`
4TMP_DIR=/tmp
5SVN_PATH=https://svn.ec-cube.net/open/branches/feature-module-update
6ECCUBE_VERSION=2.0
7WRK_DIR=eccube-$ECCUBE_VERSION
8
9if [ ! -d $TMP_DIR ]; then
10    mkdir -p $TMP_DIR
11fi
12
13cd $TMP_DIR
14svn export $SVN_PATH $WRK_DIR
15
16echo "remove obsolete files..."
17rm -rf $WRK_DIR/.setttings
18rm -rf $WRK_DIR/.buildpath
19rm -rf $WRK_DIR/.project
20rm -rf $WRK_DIR/test
21rm -rf $WRK_DIR/templates
22rm -rf $WRK_DIR/convert.php
23rm -rf $WRK_DIR/html/test
24find ./$WRK_DIR -name "dummy" -delete
25find ./$WRK_DIR -name "info.php" -delete
26
27echo "set permissions..."
28chmod 666 $WRK_DIR/data/install.php
29chmod -R 777 $WRK_DIR/html/install/temp
30chmod -R 777 $WRK_DIR/html/user_data
31chmod -R 777 $WRK_DIR/html/upload
32chmod -R 777 $WRK_DIR/html/cp
33chmod -R 777 $WRK_DIR/html/mobile/converted_images
34chmod -R 777 $WRK_DIR/data/cache
35chmod -R 777 $WRK_DIR/data/downloads
36chmod -R 777 $WRK_DIR/data/Smarty
37chmod -R 777 $WRK_DIR/data/class
38chmod -R 777 $WRK_DIR/data/logs
39chmod -R 777 $WRK_DIR/html/cp
40
41echo "complession files..."
42tar cfp $WRK_DIR.tar $WRK_DIR
43gzip -9 $WRK_DIR.tar
44mv $WRK_DIR.tar.gz $CURRENT_DIR/
45rm -rf $WRK_DIR
46
47echo "finished successful!"
48echo $CURRENT_DIR/$WRK_DIR.tar.gz
Note: See TracBrowser for help on using the repository browser.