![]() ![]() | ![]() |
Initial commit
#!/usr/bin/bash if [[ $# != 1 ]] then echo "usage: prepare.sh <freem-version>" exit 1 fi FREEM_VERSION=$1 DOWNLOAD_URL="http://freem.coherent-logic.com/downloads/freem-${FREEM_VERSION}.tar.gz" mkdir -p ~/rpmbuild/{SOURCES,SRPMS,RPMS,SPECS,BUILD,BUILDROOT} wget "${DOWNLOAD_URL}" mv freem-${FREEM_VERSION}.tar.gz /Home/rpmbuild/SOURCES/ rpmbuild -ba SPECS/freem.spec