source: branches/version-2_4/release.sh @ 17541

Revision 17541, 1.4 KB checked in by nakanishi, 12 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_REPO=file:///home/svn/open
6SVN_PATH=$SVN_REPO/branches/version-2
7SVN_TAGS=$SVN_REPO/tags
8ECCUBE_VERSION=2.3.0-rc1
9WRK_DIR=eccube-$ECCUBE_VERSION
10
11if [ ! -d $TMP_DIR ]; then
12    mkdir -p $TMP_DIR
13fi
14
15cd $TMP_DIR
16svn export $SVN_PATH $WRK_DIR
17
18echo "remove obsolete files..."
19rm -rf $WRK_DIR/.setttings
20rm -rf $WRK_DIR/.buildpath
21rm -rf $WRK_DIR/.project
22rm -rf $WRK_DIR/test
23rm -rf $WRK_DIR/templates
24rm -rf $WRK_DIR/convert.php
25rm -rf $WRK_DIR/*.sh
26rm -rf $WRK_DIR/html/test
27rm -rf $WRK_DIR/data/downloads/module/*
28find ./$WRK_DIR -name "dummy" -delete
29find ./$WRK_DIR -name "info.php" -delete
30
31echo "set permissions..."
32chmod 666 $WRK_DIR/data/install.php
33chmod -R 777 $WRK_DIR/html/install/temp
34chmod -R 777 $WRK_DIR/html/user_data
35chmod -R 777 $WRK_DIR/html/upload
36chmod -R 777 $WRK_DIR/html/cp
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..."
45
46echo "create tar archive..."
47tar cfp $WRK_DIR.tar $WRK_DIR
48gzip -9 $WRK_DIR.tar
49mv $WRK_DIR.tar.gz $CURRENT_DIR/
50
51echo "create zip archive..."
52zip -r $WRK_DIR.zip $WRK_DIR
53mv $WRK_DIR.zip $CURRENT_DIR/
54rm -rf $WRK_DIR
55
56echo "finished successful!"
57echo $CURRENT_DIR/$WRK_DIR.tar.gz
58echo $CURRENT_DIR/$WRK_DIR.zip
Note: See TracBrowser for help on using the repository browser.