create_new_woof 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. #100916 added 4quirkybuild.
  3. echo "This script makes a copy of the essential elements of the current directory"
  4. echo "so that you have a brand new 'Woof', ready to build a new Puppy distro."
  5. echo
  6. echo "These directories already exist:"
  7. find ../ -maxdepth 1 -type d -name woof\*
  8. echo
  9. echo "Type a postfix number or word for a new directory. For example,"
  10. echo "if you type '1' here, then 'woof-1' will get created."
  11. echo -n "Type postfix now: "
  12. read postfixstr
  13. mkdir ../woof-${postfixstr}
  14. [ $? -ne 0 ] && exit
  15. cp -a boot ../woof-${postfixstr}/
  16. cp -a packages-templates ../woof-${postfixstr}/
  17. cp -a rootfs-skeleton ../woof-${postfixstr}/
  18. [ -d kernel-skeleton ] && cp -a kernel-skeleton ../woof-${postfixstr}/
  19. cp -a support ../woof-${postfixstr}/
  20. cp -a 0pre ../woof-${postfixstr}/
  21. cp -a 0setup ../woof-${postfixstr}/
  22. cp -a 1download ../woof-${postfixstr}/
  23. cp -a 2createpackages ../woof-${postfixstr}/
  24. cp -a 3builddistro ../woof-${postfixstr}/
  25. cp -a 4quirkybuild ../woof-${postfixstr}/
  26. cp -a 4babybuild ../woof-${postfixstr}/
  27. cp -a create_new_woof ../woof-${postfixstr}/
  28. cp -a DISTRO_PKGS_SPECS* ../woof-${postfixstr}/
  29. cp -a PKGS_MANAGEMENT ../woof-${postfixstr}/
  30. cp -a DISTRO_PET_REPOS ../woof-${postfixstr}/
  31. cp -a DISTRO_SPECS ../woof-${postfixstr}/
  32. cp -a README.txt ../woof-${postfixstr}/
  33. cp -a Packages-puppy* ../woof-${postfixstr}/
  34. [ -f PKGS_HOMEPAGES ] && cp -a PKGS_HOMEPAGES ../woof-${postfixstr}/
  35. cp -a woof_gui ../woof-${postfixstr}/
  36. cp -a woof_gui_tabs ../woof-${postfixstr}/
  37. cp -a DISTRO_COMPAT_REPOS* ../woof-${postfixstr}/
  38. cp -a findwoofinstalledpkgs ../woof-${postfixstr}/
  39. sync
  40. cd ..
  41. dir2tgz woof-${postfixstr}
  42. sync
  43. echo "...finished."
  44. ###END###