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

Revision 16767, 1.3 KB checked in by adachi, 15 years ago (diff)

SV_PATH修正, 削除ファイルの追加

  • 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=file:///home/svn/open/branches/feature-module-update
6ECCUBE_VERSION=2.0.0-beta
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/release.sh
24rm -rf $WRK_DIR/html/test
25rm -rf $WRK_DIR/data/downloads/module/*
26rm -rf $WRK_DIR/data/downloads/module2/*
27find ./$WRK_DIR -name "dummy" -delete
28find ./$WRK_DIR -name "info.php" -delete
29
30echo "set permissions..."
31chmod 666 $WRK_DIR/data/install.php
32chmod -R 777 $WRK_DIR/html/install/temp
33chmod -R 777 $WRK_DIR/html/user_data
34chmod -R 777 $WRK_DIR/html/upload
35chmod -R 777 $WRK_DIR/html/cp
36chmod -R 777 $WRK_DIR/html/mobile/converted_images
37chmod -R 777 $WRK_DIR/data/cache
38chmod -R 777 $WRK_DIR/data/downloads
39chmod -R 777 $WRK_DIR/data/Smarty
40chmod -R 777 $WRK_DIR/data/class
41chmod -R 777 $WRK_DIR/data/logs
42chmod -R 777 $WRK_DIR/html/cp
43
44echo "complession files..."
45tar cfp $WRK_DIR.tar $WRK_DIR
46gzip -9 $WRK_DIR.tar
47mv $WRK_DIR.tar.gz $CURRENT_DIR/
48rm -rf $WRK_DIR
49
50echo "finished successful!"
51echo $CURRENT_DIR/$WRK_DIR.tar.gz
Note: See TracBrowser for help on using the repository browser.