From 1ed069f75e81f0ac2b61520be7ab05f8cca02ddf Mon Sep 17 00:00:00 2001 From: umorigu Date: Mon, 22 Nov 2021 23:09:09 +0900 Subject: [PATCH 1/1] Create patch script for 1.5.3 and gneral --- .gitignore | 4 ++++ create_patch.sh | 34 ++++++++++++++++++++++++++++++++++ create_patch_153.sh | 30 ++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100755 create_patch.sh create mode 100755 create_patch_153.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7999b04 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/_pukiwiki-* +/_build_package_* + + diff --git a/create_patch.sh b/create_patch.sh new file mode 100755 index 0000000..63fa429 --- /dev/null +++ b/create_patch.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +#usage: REV4=b44c SUFFIX=rc2 PREV=1.5.3 NEW=1.5.4 /path/to/create_patch.sh + +set -uex + +echo REV4: $REV4 +echo SUFFIX: $SUFFIX + +# Unzip all +for f in $(ls *.zip); do + echo $f + unzip $f +done + +no_exit_diff() +{ + set +e + diff $@ + set -e +} + +# Create patch packages +# PREV=1.5.3 +# NEW=1.5.4 +P2N=${PREV//./}to${NEW//./} # 153to154 + +no_exit_diff -urN pukiwiki-${PREV}_utf8 pukiwiki-${NEW}_utf8 > update_pukiwiki_${P2N}_utf8.patch +no_exit_diff -urN pukiwiki-${PREV}_eucjp pukiwiki-${NEW}_eucjp > update_pukiwiki_${P2N}_eucjp.patch +zip update_pukiwiki_${P2N}_utf8.patch.zip update_pukiwiki_${P2N}_utf8.patch +zip update_pukiwiki_${P2N}_eucjp.patch.zip update_pukiwiki_${P2N}_eucjp.patch +cp -p update_pukiwiki_${P2N}_utf8.patch.zip update_pukiwiki_${P2N}${SUFFIX}-${REV4}_utf8.patch.zip +cp -p update_pukiwiki_${P2N}_eucjp.patch.zip update_pukiwiki_${P2N}${SUFFIX}-${REV4}_eucjp.patch.zip + diff --git a/create_patch_153.sh b/create_patch_153.sh new file mode 100755 index 0000000..38be695 --- /dev/null +++ b/create_patch_153.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +#usage: REV4=b44c SUFFIX=rc2 /path/to/create_patch_153.sh + +set -uex + +echo REV4: $REV4 +echo SUFFIX: $SUFFIX + +# Unzip all +for f in $(ls *.zip); do + echo $f + unzip $f +done + +no_exit_diff() +{ + set +e + diff $@ + set -e +} + +# Create patch packages +no_exit_diff -urN pukiwiki-1.5.2_utf8 pukiwiki-1.5.3_utf8 > update_pukiwiki_152to153_utf8.patch +no_exit_diff -urN pukiwiki-1.5.2_eucjp pukiwiki-1.5.3_eucjp > update_pukiwiki_152to153_eucjp.patch +zip update_pukiwiki_152to153_utf8.patch.zip update_pukiwiki_152to153_utf8.patch +zip update_pukiwiki_152to153_eucjp.patch.zip update_pukiwiki_152to153_eucjp.patch +cp -p update_pukiwiki_152to153_utf8.patch.zip update_pukiwiki_152to153${SUFFIX}-${REV4}_utf8.patch.zip +cp -p update_pukiwiki_152to153_eucjp.patch.zip update_pukiwiki_152to153${SUFFIX}-${REV4}_eucjp.patch.zip + -- 2.11.0