OSDN Git Service

add create-update18-archive tool
[wesnoth-ja/tools.git] / create-update18-archive / mkpackage.sh
1 #!/bin/sh
2
3 GIT_BASE_DIR=${HOME}/git/sfjp/wesnoth-ja/ja-po
4 GIT_TOOLS_DIR=${HOME}/git/sfjp/wesnoth-ja/tools/create-update18-archive
5 TARGET_DIR=${HOME}/tmp
6
7 DATE=`date +%Y%m%d`
8 TARGET_VER=1.8.5
9 NAME=wesnoth-${TARGET_VER}_ja-catalogs-${DATE}
10
11 TRANSLATED_FILES=(httt)
12
13 rm -rf  $TARGET_DIR/$NAME
14 rm -f $TARGET_DIR/${NAME}.{zip,tar.gz}
15 mkdir -p $TARGET_DIR/$NAME
16 cd $TARGET_DIR/$NAME
17
18 #mkdir wesnoth
19 #cp $GIT_BASE_DIR/wesnoth/ja.po wesnoth-${TARGET_VER}_wesnoth-${DATE}_ja.po
20
21 for fname in ${TRANSLATED_FILES[@]}
22 do
23     cp ${GIT_BASE_DIR}/wesnoth-${fname}/ja.po wesnoth-${TARGET_VER}_${fname}-${DATE}_ja.po
24 done
25
26 # add files
27 cp ${GIT_BASE_DIR}/COPYING .
28 cp ${GIT_TOOLS_DIR}/README.txt .
29
30 cd $TARGET_DIR
31 tar zcvf ${NAME}.tar.gz ${NAME}
32 zip -r ${NAME}.zip ${NAME}
33