Skip to content

Commit

Permalink
Script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Mar 31, 2023
1 parent 4d2489d commit c4446b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pushd temp

# Download the latest release jar
wget --trust-server-names "https://search.maven.org/remote_content?g=org.threeten&a=threetenbp&v=LATEST"
ls

# Extract its version
file="$(ls)"
Expand All @@ -17,10 +16,12 @@ version="${version%.jar}"
# Unzip its contents
unzip "$file"

# Replace embedded TZDB with new one.
rm ../threetenabp/src/main/assets/org/threeten/bp/TZDB.dat
mv org/threeten/bp/TZDB.dat ../threetenabp/src/main/assets/org/threeten/bp/

popd
rm -r temp

sed -i '' -E "s/threetenbp:[^:]+:no-tzdb/threetenbp:${version}:no-tzdb/" build.gradle
# Bump version in build file.
sed -i -E "s/threetenbp:[^:]+:no-tzdb/threetenbp:${version}:no-tzdb/" build.gradle

0 comments on commit c4446b3

Please sign in to comment.