Skip to content

Commit

Permalink
Import definitions.units September 2022 Version 3.15.
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed Jan 4, 2023
1 parent c15b76c commit c93475f
Show file tree
Hide file tree
Showing 10 changed files with 1,320 additions and 746 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
7.6: Jan 04, 2023
-----------------
* Import definitions.units September 2022 Version 3.15.

7.4: May 20, 2021 - World Metrology Day
---------------------------------------
* Fix hash table creation on PostgreSQL 14.
Expand Down
6 changes: 5 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
postgresql-unit (7.5-3) UNRELEASED; urgency=medium
postgresql-unit (7.6-1) UNRELEASED; urgency=medium

[ Debian Janitor ]
* Remove constraints unnecessary since buster (oldstable):
+ Build-Depends: Drop versioned constraint on bison.
* Use secure copyright file specification URI.
* Set upstream metadata fields: Bug-Database, Bug-Submit, Repository-Browse.

[ Christoph Berg ]
* Import definitions.units September 2022 Version 3.15.

-- Debian Janitor <[email protected]> Mon, 24 Oct 2022 16:32:10 -0000

postgresql-unit (7.5-2) unstable; urgency=medium
Expand Down
650 changes: 430 additions & 220 deletions definitions.units

Large diffs are not rendered by default.

650 changes: 428 additions & 222 deletions definitions.units.patched

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion definitions.unresolved
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ guilder netherlandsguilder
hollandguilder netherlandsguilder
peso mexicopeso
yen japanyen
lira italylira
lira turkeylira
rupee indiarupee
drachma greecedrachma
franc francefranc
Expand Down Expand Up @@ -112,11 +112,14 @@ loony 1 canadadollar
toony 2 canadadollar
satoshi 1e-8 bitcoin
XBT bitcoin
brmgd mega brgallon/day
usmgd mega usgallon/day
percapita per capita
dollar US$
cent $ 0.01
penny cent
grand usgrand
π pi
¢ cent
£ britainpound
¥ japanyen
Expand Down
4 changes: 2 additions & 2 deletions do
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ set -eux

export PGDATABASE=postgres

for PGVERSION in ${*:-14 13 12 11 10 9.6 9.5}; do
for PGVERSION in ${*:-15 14 13 12 11 10 9.6 9.5}; do
echo
echo "### $PGVERSION ###"
PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config
export PGCLUSTER="$PGVERSION/main"
export PGPORT="54${PGVERSION/./}"
[ "$PGVERSION" = "14" ] && unset PGPORT # default version
[ "$PGVERSION" = "15" ] && unset PGPORT # default version

make clean
make PG_CONFIG=$PG_CONFIG PROFILE="-Werror"
Expand Down
227 changes: 123 additions & 104 deletions expected/time.out

Large diffs are not rendered by default.

247 changes: 155 additions & 92 deletions expected/units.out

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions load-units.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
my @todo;
my $continued = '';

<F>; # skip over initial line with BOM

while (<F>) {
# skip over locale specific parts
$skip_british = 1 if /^!var UNITS_ENGLISH GB/;
Expand Down
271 changes: 167 additions & 104 deletions unit_units.data

Large diffs are not rendered by default.

0 comments on commit c93475f

Please sign in to comment.