source: branches/comu-ver2/release.sh @ 18382

Revision 18382, 1.4 KB checked in by Seasoft, 13 years ago (diff)

r18296 対応漏れ。

  • 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
[17152]5SVN_REPO=file:///home/svn/open
[17581]6SVN_PATH=$SVN_REPO/branches/comu-ver2
[17152]7SVN_TAGS=$SVN_REPO/tags
[18316]8ECCUBE_VERSION=2.4.1-commu
[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
[17152]24rm -rf $WRK_DIR/*.sh
[16593]25rm -rf $WRK_DIR/html/test
[16767]26rm -rf $WRK_DIR/data/downloads/module/*
[16593]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/data/cache
37chmod -R 777 $WRK_DIR/data/downloads
38chmod -R 777 $WRK_DIR/data/Smarty
39chmod -R 777 $WRK_DIR/data/class
40chmod -R 777 $WRK_DIR/data/logs
41chmod -R 777 $WRK_DIR/html/cp
[18382]42chmod -R 777 $WRK_DIR/data/upload
[16593]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
[17142]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
[17142]58echo $CURRENT_DIR/$WRK_DIR.zip
Note: See TracBrowser for help on using the repository browser.