File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11
22if [ " $1 " = " package" ]; then
3+ curdate=$( date " +%Y-%m-%d" )
4+ curtime=$( date " +%H:%M:%S" )
5+
6+ cp -af package.xml.template package.xml
7+ perl -pi -e " s/\@curdate\@/${curdate} /g" package.xml
8+ perl -pi -e " s/\@curtime\@/${curtime} /g" package.xml
9+
310 list=" README.md README.ko.md config.m4 execdirapi.c execdirapi.h php_execdir.c php_execdir.h proc_open.c proc_open5.c proc_open53.c"
411
512 for i in ${list}
@@ -20,6 +27,7 @@ if [ "$1" = "package" ]; then
2027 done
2128
2229 pecl package
30+ rm -f package.xml
2331 exit 0
2432fi
2533
Original file line number Diff line number Diff line change 1111 <email >joungkyun@daum.net</email >
1212 <active >yes</active >
1313 </lead >
14- <date >2019-02-06 </date >
15- <time >04:40:54 </time >
14+ <date >@curdate@ </date >
15+ <time >@curtime@ </time >
1616 <version >
1717 <release >1.0.4</release >
1818 <api >1.0.0</api >
7676 <release >
7777 <stability ><release >stable</release ><api >stable</api ></stability >
7878 <version ><release >1.0.4</release ><api >1.0.0</api ></version >
79- <date >2019-02-06 </date >
79+ <date >@curdate@ </date >
8080 <notes >
8181 - fixed #24 support PHP 7.3
8282 </notes >
You can’t perform that action at this time.
0 commit comments