buildxenocararelease.sh 523 B

123456789101112131415161718192021222324
  1. #! /bin/sh
  2. ARCH=`arch -s`
  3. DESTDIR=/usr/local/storage/dest/xenocara/${ARCH}
  4. RELEASEDIR=/usr/local/storage/release/${ARCH}
  5. if [ -e :s/etc/mk.conf ]; then
  6. XSRCDIR=${XSRCDIR:-`make -f /etc/mk.conf -V XSRCDIR`}
  7. fi
  8. XSRCDIR=${XSRCDIR:=/usr/xenocara}
  9. export DESTDIR
  10. export RELEASEDIR
  11. test -d "${DESTDIR}" && sudo mv "${DESTDIR}" "${DESTDIR}-" \
  12. && sudo rm -rf "${DESTDIR}-"
  13. sudo mkdir -p "${DESTDIR}" "${RELEASEDIR}"
  14. cd "${XSRCDIR}" && sudo nice make bootstrap release
  15. RESULT=$?
  16. unset RELEASEDIR DESTDIR
  17. exit ${RESULT}