Skip to content

Commit 9919999

Browse files
committed
enhanced pecl package
1 parent f321b45 commit 9919999

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

init.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11

22
if [ "$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
2432
fi
2533

package.xml renamed to package.xml.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
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>
@@ -76,7 +76,7 @@
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>

0 commit comments

Comments
 (0)