diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
| commit | 294bc6ecabf14c09c9bc8644704921dcf97cb44e (patch) | |
| tree | 279b1e0bab53901a1647ac63c1c724f0f789a663 /src/third_party/timelib/zones/update-package-version.php | |
| parent | 70be7c27a251621187a1de533462ae2bb1e3bd39 (diff) | |
| parent | 1e917fd798aa25b7066d4b414b51184f13d5a092 (diff) | |
Update upstream source from tag 'upstream/6.0.10'debian/6.0.10-1
Update to upstream version '6.0.10'
with Debian dir 2d176fa254eee97b139f712fec5709641335a8c3
Diffstat (limited to 'src/third_party/timelib/zones/update-package-version.php')
| -rw-r--r-- | src/third_party/timelib/zones/update-package-version.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/third_party/timelib/zones/update-package-version.php b/src/third_party/timelib/zones/update-package-version.php new file mode 100644 index 00000000000..6fb25521586 --- /dev/null +++ b/src/third_party/timelib/zones/update-package-version.php @@ -0,0 +1,13 @@ +<?php +$e = file_get_contents( $argv[1] . '/php_timezonedb.h' ); + +/* Grab version info */ +$version_info = file( 'version-info.txt' ); +$tzversion = trim( $version_info[0] ); +$version = trim( $version_info[1] ); + +/* Use preg_replace to update version in package.xml */ +$f = preg_replace( '@"20[0-2][0-9].*"@', "\"{$version}\"", $e ); + +file_put_contents( $argv[1] . '/php_timezonedb.h', $f ); +?> |
