Skip to content

Commit

Permalink
modify as comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzuo0621 committed Jul 6, 2023
1 parent a8f8666 commit 81dc8df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions locale/locale.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ def _impl(ctx):
],
command = """
set -o pipefail -o errexit -o nounset
ar -x "$1" data.tar.xz
tmp=$(mktemp -d)
tar -xf data.tar.xz -C "$tmp" ./usr/lib/locale/C.UTF-8 ./usr/share/doc/libc-bin/copyright
rm data.tar.xz
ar -x "$1" --output "$tmp" data.tar.xz
tar -xf "$tmp/data.tar.xz" -C "$tmp" ./usr/lib/locale/C.UTF-8 ./usr/share/doc/libc-bin/copyright
cp -r "$tmp/usr/lib/locale/C.UTF-8/." $2
mv "$tmp/usr/share/doc/libc-bin/copyright" $3
""",
Expand Down

0 comments on commit 81dc8df

Please sign in to comment.