blob: 0b51dcd16ee42b7b94c54970349c8e2d5ec96c3f [file] [log] [blame]
# © 2016 and later: Unicode, Inc. and others.
# License & terms of use:
if [[ -z $1 ]]; then
echo "Pass the current version tag of double-conversion as the first argument to this script";
exit 1;
echo "Updating upstream to $1";
echo "Will download $url";
read -p "Press any key to continue";
rm -f $filename;
wget $url;
rm -r upstream; # in case any files were deleted in the new version
mkdir upstream;
tar zxf $filename --strip 1 -C upstream;
rm $filename;
echo "upstream updated and $filename removed";