• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki_devel: Commit


Commit MetaInfo

Revisión2cbc4427b8438a9126fc93fe6b506b81c2de81c5 (tree)
Tiempo2020-02-16 17:49:37
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

Create patch script

Cambiar Resumen

Diferencia incremental

--- /dev/null
+++ b/create_patch_152.sh
@@ -0,0 +1,46 @@
1+#!/bin/bash
2+
3+#usage: REV4=b44c SUFFIX=rc2 /path/to/create_patch_152.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+# Prepare (UTF-8)
17+rm pukiwiki-1.5.1_utf8/cache/*.rel
18+rm pukiwiki-1.5.1_utf8/cache/*.ref
19+rm pukiwiki-1.5.1_utf8/cache/autolink.dat
20+rm pukiwiki-1.5.1_utf8/cache/entities.dat
21+rm pukiwiki-1.5.1_utf8/skin/pukiwiki.css.php
22+rm pukiwiki-1.5.1_utf8/skin/tdiary.css.php
23+
24+# Prepare (EUC-JP)
25+rm pukiwiki-1.5.1_eucjp/cache/*.rel
26+rm pukiwiki-1.5.1_eucjp/cache/*.ref
27+rm pukiwiki-1.5.1_eucjp/cache/autolink.dat
28+rm pukiwiki-1.5.1_eucjp/cache/entities.dat
29+rm pukiwiki-1.5.1_eucjp/skin/pukiwiki.css.php
30+rm pukiwiki-1.5.1_eucjp/skin/tdiary.css.php
31+
32+no_exit_diff()
33+{
34+ set +e
35+ diff $@
36+ set -e
37+}
38+
39+# Create patch packages
40+no_exit_diff -urN pukiwiki-1.5.1_utf8 pukiwiki-1.5.2_utf8 > update_pukiwiki_151to152_utf8.patch
41+no_exit_diff -urN pukiwiki-1.5.1_eucjp pukiwiki-1.5.2_eucjp > update_pukiwiki_151to152_eucjp.patch
42+zip update_pukiwiki_151to152_utf8.patch.zip update_pukiwiki_151to152_utf8.patch
43+zip update_pukiwiki_151to152_eucjp.patch.zip update_pukiwiki_151to152_eucjp.patch
44+cp -p update_pukiwiki_151to152_utf8.patch.zip update_pukiwiki_151to152${SUFFIX}-${REV4}_utf8.patch.zip
45+cp -p update_pukiwiki_151to152_eucjp.patch.zip update_pukiwiki_151to152${SUFFIX}-${REV4}_eucjp.patch.zip
46+
Show on old repository browser