logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

fetch.sh (698B)


  1. set -e
  2. dir=$1
  3. shift
  4. cd "$dir"
  5. if [ -e src ] ; then
  6. rm -rf src
  7. fi
  8. if ! sh "$OLDPWD/scripts/checksum.sh" -c sha256 2>/dev/null ; then
  9. curl -L -K url -O
  10. sh "$OLDPWD/scripts/checksum.sh" -c sha256
  11. fi
  12. sh "$OLDPWD/scripts/extract.sh" src.tar.gz -s ',^,src/,' \
  13. 'bin/pax/*' \
  14. 'include/*' \
  15. 'lib/libc/*' \
  16. 'lib/libcrypto/arc4random/*' \
  17. 'lib/libutil/*' \
  18. 'usr.bin/diff/*' \
  19. 'usr.bin/doas/*' \
  20. 'usr.bin/fmt/*' \
  21. 'usr.bin/m4/*' \
  22. 'usr.bin/nc/*' \
  23. 'usr.bin/patch/*' \
  24. 'usr.bin/rsync/*' \
  25. 'usr.bin/yacc/*' \
  26. 'usr.sbin/acme-client/*'
  27. sh "$OLDPWD/scripts/extract.sh" sys.tar.gz -s ',^,src/,' 'sys/sys/*'
  28. git apply -v --whitespace=nowarn --directory "$dir/src" patch/*