forked from ttacon/libphonenumber
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…tacon#53) update to upstream f9e9424769964ce1970c6ed2bd60b25b976dfe6f (>8.4.3)
- Loading branch information
Showing
6 changed files
with
12,497 additions
and
11,743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.cov | ||
*.cov | ||
vendor/ | ||
google_libphonenumber/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
WHOAMI=$(shell whoami) | ||
|
||
SED_I = sed -i | ||
ifeq ($(shell uname -s), Darwin) | ||
SED_I = sed -i '' | ||
endif | ||
|
||
nothing: | ||
|
||
generate_proto: | ||
docker run --rm -v $(PWD):$(PWD) -w $(PWD) znly/protoc -I. --go_out=Mgoogle/protobuf/field_mask.proto=github.com/google/go-genproto/protobuf/field_mask,plugins=grpc:./ ./google_libphonenumber/resources/*.proto | ||
mv ./google_libphonenumber/resources/*.pb.go ./ | ||
sudo chown -R $(WHOAMI) * | ||
$(SED_I) -E 's/package i18n_phonenumbers/package libphonenumber/g' $(shell ls *.pb.go) | ||
awk '/static const unsigned char/ { show=1 } show; /}/ { show=0 }' ./google_libphonenumber/cpp/src/phonenumbers/metadata.cc | tail -n +2 | sed '$$d' | sed -E 's/([^,])$$/\1,/g' | awk 'BEGIN{print "package libphonenumber\nvar metaData = []byte{"}; {print}; END{print "}"}' > metagen.go | ||
go fmt ./metagen.go | ||
|
||
distupdate: | ||
rm -rf ./google_libphonenumber | ||
git clone --depth 1 https://github.com/googlei18n/libphonenumber.git ./google_libphonenumber/ | ||
|
||
update: distupdate generate |
Oops, something went wrong.