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

Revision 17541, 1.4 KB checked in by nakanishi, 14 years ago (diff)

バージョン番号修正

  • Property svn:executable set to *
  • Property svn:keywords set to Id Revision Date
RevLine 
[16593]1#!/bin/sh
2
3CURRENT_DIR=`pwd`
4TMP_DIR=/tmp
[17149]5SVN_REPO=file:///home/svn/open
[17150]6SVN_PATH=$SVN_REPO/branches/version-2
7SVN_TAGS=$SVN_REPO/tags
[17541]8ECCUBE_VERSION=2.3.0-rc1
[16593]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
[17149]25rm -rf $WRK_DIR/*.sh
[16593]26rm -rf $WRK_DIR/html/test
[16767]27rm -rf $WRK_DIR/data/downloads/module/*
[16593]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..."
[17013]45
46echo "create tar archive..."
[16593]47tar cfp $WRK_DIR.tar $WRK_DIR
48gzip -9 $WRK_DIR.tar
49mv $WRK_DIR.tar.gz $CURRENT_DIR/
[17013]50
[17036]51echo "create zip archive..."
[17013]52zip -r $WRK_DIR.zip $WRK_DIR
53mv $WRK_DIR.zip $CURRENT_DIR/
[16593]54rm -rf $WRK_DIR
55
56echo "finished successful!"
57echo $CURRENT_DIR/$WRK_DIR.tar.gz
[17036]58echo $CURRENT_DIR/$WRK_DIR.zip
Note: See TracBrowser for help on using the repository browser.