extract_system.sh 922 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. if [ -d vpkgs ]; then
  3. cd vpkgs
  4. timeout 30 git pull
  5. timeout 30 git pull upstream master
  6. cd ..
  7. else
  8. git clone --depth 1 https://github.com/void-linux/void-packages vpkgs
  9. fi
  10. if [ -d srcpkgs ]; then
  11. rm -r srcpkgs
  12. mkdir srcpkgs
  13. else
  14. mkdir srcpkgs
  15. fi
  16. for i in $(cat base-system.pkgs); do
  17. cp -r vpkgs/srcpkgs/$i srcpkgs/
  18. done
  19. for i in common etc; do
  20. if [ -d $i ]; then
  21. if [ $i == 'etc' ]; then
  22. mv $i/conf ./etc_conf
  23. fi
  24. rm -r $i
  25. cp -r vpkgs/$i ./
  26. if [ $i == 'etc' ]; then
  27. cp ./etc_conf $i/conf
  28. fi
  29. else
  30. cp -r vpkgs/$i ./
  31. fi
  32. done
  33. cp -r dsrc/base srcpkgs/
  34. cp vpkgs/xbps-src ./
  35. cp vpkgs/COPYING ./
  36. git checkout srcpkgs/libsecret/template
  37. git checkout srcpkgs/nasm/template
  38. git checkout srcpkgs/linux/template
  39. git checkout common/repo-keys/84:f1:79:cb:06:98:c2:8d:5c:6b:f5:2a:cf:25:52:8f.plist