linux.win.download.sh 280 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -e
  3. CACHE_DIR=$HOME/apt_mingw_cache/$1
  4. mkdir -p $CACHE_DIR
  5. pushd $CACHE_DIR
  6. apt-get --print-uris --yes install $MINGW_PACKAGES | grep ^\' | cut -d\' -f2 > downloads.list
  7. wget -N --input-file downloads.list
  8. sudo cp ./*.deb /var/cache/apt/archives/
  9. popd