source: branches/eccube-donation/donation-release.sh @ 20630

Revision 20630, 996 bytes checked in by nanasess, 10 years ago (diff)

アーカイブ作成用スクリプト追加

  • Property svn:keywords set to Id Revision Date
Line 
1#!/bin/sh
2
3GENERAL_DIR=send_point
4SIDE_DIR=send_point_side
5MOBILE_DIR=send_point_mobile
6ADMIN_DIR=dn
7
8GENERAL_SRC=html/frontparts/bloc
9MOBILE_SRC=html/mobile/frontparts/bloc
10
11LOG=release.log
12
13if [ -f $LOG ] ; then
14    touch $LOG
15fi
16
17for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
18do
19    if [ -f "$DIR".zip ] ; then
20    rm "$DIR".zip
21    fi
22done
23
24svn update 1>> $LOG
25
26for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
27do
28    if [ ! -d $DIR ] ; then
29    mkdir -p $DIR
30    fi
31done
32
33cp $GENERAL_SRC/* $GENERAL_DIR
34cp $GENERAL_SRC/dn.css $ADMIN_DIR
35cp $GENERAL_SRC/index.php $ADMIN_DIR
36cp $MOBILE_SRC/*  $MOBILE_DIR
37cp $GENERAL_SRC/* $SIDE_DIR
38patch -p3 -d $SIDE_DIR < sidebar.patch 1>> $LOG
39
40find $SIDE_DIR -name '*.orig' -delete -print 1>> $LOG
41
42for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
43do
44    if [ -d $DIR ] ; then
45    zip -r "$DIR".zip $DIR 1>> $LOG
46    fi
47done
48
49for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
50do
51    if [ -d $DIR ] ; then
52    rm -rf $DIR
53    fi
54done
Note: See TracBrowser for help on using the repository browser.