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 (554B)


  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. read -r _ archive <sha256
  13. sh "$OLDPWD/scripts/extract.sh" "$archive" -s ',^[^/]*,src,' \
  14. 'linux-*/Makefile' \
  15. 'linux-*/arch/*/include/uapi/' \
  16. 'linux-*/arch/*/entry/syscalls/' \
  17. 'linux-*/include/uapi/' \
  18. 'linux-*/scripts/unifdef.c'
  19. if [ -d patch ] ; then
  20. git apply -v --whitespace=nowarn --directory "$dir/src" patch/*
  21. fi