source: branches/version-2_11/release.sh @ 20116

Revision 20116, 1.3 KB checked in by nanasess, 10 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1#!/bin/sh
2
3CURRENT_DIR=`pwd`
4TMP_DIR=/tmp
5SVN_REPO=file:///home/svn/open
6SVN_PATH=$SVN_REPO/branches/comu-ver2
7SVN_TAGS=$SVN_REPO/tags
8ECCUBE_VERSION=2.4.1-commu
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/*.sh
25rm -rf $WRK_DIR/html/test
26rm -rf $WRK_DIR/data/downloads/module/*
27find ./$WRK_DIR -name "dummy" -delete
28
29echo "set permissions..."
30chmod 666 $WRK_DIR/data/install.php
31chmod -R 777 $WRK_DIR/html/install/temp
32chmod -R 777 $WRK_DIR/html/user_data
33chmod -R 777 $WRK_DIR/html/upload
34chmod -R 777 $WRK_DIR/html/cp
35chmod -R 777 $WRK_DIR/data/cache
36chmod -R 777 $WRK_DIR/data/downloads
37chmod -R 777 $WRK_DIR/data/Smarty
38chmod -R 777 $WRK_DIR/data/class
39chmod -R 777 $WRK_DIR/data/logs
40chmod -R 777 $WRK_DIR/html/cp
41chmod -R 777 $WRK_DIR/data/upload
42
43echo "complession files..."
44
45echo "create tar archive..."
46tar cfp $WRK_DIR.tar $WRK_DIR
47gzip -9 $WRK_DIR.tar
48mv $WRK_DIR.tar.gz $CURRENT_DIR/
49
50echo "create zip archive..."
51zip -r $WRK_DIR.zip $WRK_DIR
52mv $WRK_DIR.zip $CURRENT_DIR/
53rm -rf $WRK_DIR
54
55echo "finished successful!"
56echo $CURRENT_DIR/$WRK_DIR.tar.gz
57echo $CURRENT_DIR/$WRK_DIR.zip
Note: See TracBrowser for help on using the repository browser.