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

Revision 20632, 964 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
13rm $LOG
14
15for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
16do
17    if [ -f "$DIR".zip ] ; then
18    rm "$DIR".zip
19    fi
20done
21
22svn update 1>> $LOG
23
24for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
25do
26    if [ ! -d $DIR ] ; then
27    mkdir -p $DIR
28    fi
29done
30
31cp $GENERAL_SRC/* $GENERAL_DIR
32cp $GENERAL_SRC/dn.css $ADMIN_DIR
33cp $GENERAL_SRC/index.php $ADMIN_DIR
34cp $MOBILE_SRC/*  $MOBILE_DIR
35cp $GENERAL_SRC/* $SIDE_DIR
36patch -p3 -d $SIDE_DIR < sidebar.patch 1>> $LOG
37
38find $SIDE_DIR -name '*.orig' | xargs rm -rf 1>> $LOG
39
40for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
41do
42    if [ -d $DIR ] ; then
43    zip -r "$DIR".zip $DIR 1>> $LOG
44    fi
45done
46
47for DIR in $GENERAL_DIR $SIDE_DIR $MOBILE_DIR $ADMIN_DIR
48do
49    if [ -d $DIR ] ; then
50    rm -rf $DIR
51    fi
52done
Note: See TracBrowser for help on using the repository browser.