Skip to content

Commit

Permalink
Update to 2024b
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Sep 7, 2024
1 parent c1978f6 commit 568dbb6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DELETE_ON_ERROR:

TZDB_VERSION := tzdb-2024a
TZDB_VERSION := tzdb-2024b

tzdb_data/src/generated/mod.rs: tmp/${TZDB_VERSION}/usr/share/zoneinfo/ tzdb.tar.lz.sha
cd make-tzdb && cargo r -- ../$(@D) ../$< ../tzdb.tar.lz.sha
Expand Down
5 changes: 5 additions & 0 deletions make-tzdb/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ fn gen_mod(args: &mut impl Iterator<Item = String>, target_dir: &Path) -> Result
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#![allow(unknown_lints)]
#![allow(clippy::pedantic)]
#[cfg(all(test, not(miri)))]
Expand All @@ -183,6 +184,7 @@ pub const VERSION: &str = {version:?};
/// The SHA512 hash of the source Time Zone Database (using the "Complete Distribution")
pub const VERSION_HASH: &str = {hash:?};
#[allow(unreachable_pub)] // false positive
pub use self::tz_names::TZ_NAMES;
"#
);
Expand Down Expand Up @@ -275,6 +277,9 @@ fn collect_entries_by_bytes(args: &mut impl Iterator<Item = String>) -> anyhow::

fn gen_raw_tzdata(entries_by_bytes: IndexMap<Vec<u8>, Vec<TzName>>, target_dir: &Path) -> anyhow::Result<()> {
let mut r = GENERATED_FILE.to_owned();
writeln!(r, "#![allow(unknown_lints)]")?;
writeln!(r, "#![allow(clippy::octal_escapes)]")?;
writeln!(r)?;
for (bytes, entries) in &entries_by_bytes {
writeln!(
r,
Expand Down
2 changes: 1 addition & 1 deletion tzdb.tar.lz.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1a3b06ea2b28a0bf968b75f3674f3b64d8226338d42e2ed17aea33e34bff0f9a7a22f4116612e6c81b9b7b57deaee6ed01a6881000fa1042a7f4390b55a1856 tmp/tzdb-2024a.tar.lz
72446e5cf445515512437c8deaae3063b093aab9620d6441cafaa9b3b71603c857f7ba53557579595788bbc901cd6142404b4db6b0e9f2b23d57b2b3cbc837a8 tmp/tzdb-2024b.tar.lz
2 changes: 1 addition & 1 deletion tzdb_data/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tzdb_data"
version = "0.1.2"
version = "0.1.3"
edition = "2018"
authors = ["René Kijewski <[email protected]>"]
repository = "https://github.com/Kijewski/tzdb"
Expand Down
2 changes: 1 addition & 1 deletion tzdb_data/src/generated
Submodule generated updated from 199987 to e04be6

0 comments on commit 568dbb6

Please sign in to comment.