Skip to content

Commit

Permalink
for some reason git has started applying the current date/time to fil…
Browse files Browse the repository at this point in the history
…es thus making them always more recent than what we're trying to build, so correct that
  • Loading branch information
DrHyde committed Jan 20, 2023
1 parent 0d4bd3d commit 430a6ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function quietly? {
cd libphonenumber
git checkout -q master
git pull -q
touch -t $(git --no-pager log -1 --format=%ad --date=format:%Y%m%d%H%M.%S resources/PhoneNumberMetadata.xml) resources/PhoneNumberMetadata.xml
)

# # LFS repo removed from github cos it ran out of space
Expand Down Expand Up @@ -88,7 +89,11 @@ if [ "$FORCE" == "1" ]; then
fi

# switch to our desired tag, and cache it for a future --previouslibphonenumbertag build
(cd libphonenumber; git checkout -q $LIBPHONENUMBERTAG)
(
cd libphonenumber
git checkout -q $LIBPHONENUMBERTAG
touch -t $(git --no-pager log -1 --format=%ad --date=format:%Y%m%d%H%M.%S resources/PhoneNumberMetadata.xml) resources/PhoneNumberMetadata.xml
)
echo $LIBPHONENUMBERTAG > .libphonenumber-tag

# first get OFCOM data and NANP operator data
Expand Down

0 comments on commit 430a6ee

Please sign in to comment.