OSDN Git Service

Clean repository directory
[pukiwiki/pukiwiki_devel.git] / create_patch_153.sh
1 #!/bin/bash
2
3 #usage: REV4=b44c SUFFIX=rc2 /path/to/create_patch_153.sh
4
5 set -uex
6
7 echo REV4: $REV4
8 echo SUFFIX: $SUFFIX
9
10 # Unzip all
11 for f in $(ls *.zip); do
12   echo $f
13   unzip $f
14 done
15
16 no_exit_diff()
17 {
18     set +e
19     diff $@
20     set -e
21 }
22
23 # Create patch packages
24 no_exit_diff -urN pukiwiki-1.5.2_utf8 pukiwiki-1.5.3_utf8 > update_pukiwiki_152to153_utf8.patch
25 no_exit_diff -urN pukiwiki-1.5.2_eucjp pukiwiki-1.5.3_eucjp > update_pukiwiki_152to153_eucjp.patch
26 zip update_pukiwiki_152to153_utf8.patch.zip update_pukiwiki_152to153_utf8.patch
27 zip update_pukiwiki_152to153_eucjp.patch.zip update_pukiwiki_152to153_eucjp.patch
28 cp -p update_pukiwiki_152to153_utf8.patch.zip update_pukiwiki_152to153${SUFFIX}-${REV4}_utf8.patch.zip
29 cp -p update_pukiwiki_152to153_eucjp.patch.zip update_pukiwiki_152to153${SUFFIX}-${REV4}_eucjp.patch.zip
30