#!/bin/sh # # Script to get Cygwin Net release files # # wget -q -O - http://http://smithii.com/files/cygwin/email/get.sh | sh # # http://smithii.com/files/cygwin/email/setup.hint # http://smithii.com/files/cygwin/email/email-2.5.1-1.tar.bz2 # http://smithii.com/files/cygwin/email/email-2.5.1-1-src.tar.bz2 PKG=email FULLPKG=email-2.5.1-1 URL=http://smithii.com/files/cygwin FILES="setup.hint ${FULLPKG}.tar.bz2 ${FULLPKG}-src.tar.bz2" current=$(pwd) # if we are already in ${PKG} download it here, otherwise into the new subdir ${PKG} if [ "$(basename $current)" != "${PKG}" ]; then mkdir ${PKG} cd ${PKG} fi # delete old, otherwise re-downloaded files contain counter like '.1' [ "$FILES" ] && rm -f $FILES for file in $FILES; do case $file in */*) dir=${file%/*} mkdir -p $dir || exit 1 cd $dir || exit 1 ;; esac wget --non-verbose $URL/${PKG}/$file || exit 1 done # Instructions after download echo " [binary] package view instructions: tar -jtvf ${FULLPKG}.tar.bz2 [binary] package install instructions: tar -C / -jxvf ${FULLPKG}.tar.bz2 [source] package instructions: tar -jxvf ${FULLPKG}-src.tar.bz2 bash ./ ${FULLPKG}.sh all The shell script in *-src* archive can make a Cygwin Net release [binary] package, but it is not guaranteed that it can by itself make a [source] package. If the build interupts, please check the shell script ${FULLPKG}.sh " # End of download script