Heck's structured cross-platform bash setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.1 KiB

1 year ago
1 year ago
1 year ago
11 months ago
8 months ago
8 months ago
1 year ago
1 year ago
  1. #!/bin/bash
  2. # Delete symlinks in the pEpPythonAdapter (to allow "project search")
  3. function pEpPythonAdapterRmSymlinks() {
  4. for i in $(find . -type l | grep -i lib); do { rm -v $i; }; done
  5. }
  6. # pEp Fresh Repo Clones
  7. export PEP_LOCAL_CONF_DIR=$HOME/src/conf/
  8. function clone_pEpEngine() {
  9. git clone https://gitea.pep.foundation/pEp.foundation/pEpEngine.git .
  10. cp $PEP_LOCAL_CONF_DIR/local.conf.pEpEngine local.conf
  11. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.pEpEngine .idea
  12. }
  13. function clone_pEpEngineHeck() {
  14. git clone https://gitea.pep.foundation/heck/pEpEngine .
  15. cp $PEP_LOCAL_CONF_DIR/local.conf.pEpEngine local.conf
  16. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.pEpEngine .idea
  17. }
  18. function clone_pEpPythonAdapter() {
  19. git clone https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter.git .
  20. cp $PEP_LOCAL_CONF_DIR/local.conf.pEpPythonAdapter local.conf
  21. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.pEpPythonAdapter .idea
  22. }
  23. function clone_pEpJNIAdapter() {
  24. git clone https://gitea.pep.foundation/pEp.foundation/pEpJNIAdapter.git .
  25. cp $PEP_LOCAL_CONF_DIR/local.conf.pEpJNIAdapter local.conf
  26. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.pEpJNIAdapter .idea
  27. }
  28. function clone_pEpJSONAdapter() {
  29. git clone https://gitea.pep.foundation/pEp.foundation/pEpJSONServerAdapter.git .
  30. cp $PEP_LOCAL_CONF_DIR/local.conf.pEpJSONAdapter local.conf
  31. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.pEpJSONAdapter .idea
  32. }
  33. function clone_libpEpAdapter() {
  34. git clone https://gitea.pep.foundation/pEp.foundation/libpEpAdapter.git .
  35. cp $PEP_LOCAL_CONF_DIR/local.conf.libpEpAdapter local.conf
  36. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.libpEpAdapter .idea
  37. }
  38. function clone_rce() {
  39. git clone https://gitea.pep.foundation/pEp.foundation/RCE .
  40. cp $PEP_LOCAL_CONF_DIR/local.conf.rce local.conf
  41. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.rce .idea
  42. }
  43. function clone_libpEpDatatypes() {
  44. git clone https://gitea.pep.foundation/pEp.foundation/libpEpDatatypes.git .
  45. cp $PEP_LOCAL_CONF_DIR/local.conf.libpEpDatatypes local.conf
  46. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.libpEpDatatypes .idea
  47. }
  48. function clone_libpEpTransport() {
  49. git clone https://gitea.pep.foundation/pEp.foundation/libpEpTransport.git .
  50. cp $PEP_LOCAL_CONF_DIR/local.conf.libpEpTransport local.conf
  51. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.libpEpTransport .idea
  52. }
  53. function clone_pitytest11() {
  54. git clone https://gitea.pep.foundation/pEp.foundation/PityTest11.git .
  55. cp $PEP_LOCAL_CONF_DIR/local.conf.PityTest11 local.conf
  56. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.PityTest11 .idea
  57. }
  58. function clone_libpEpCxx11() {
  59. git clone https://gitea.pep.foundation/pEp.foundation/libpEpCxx11.git .
  60. cp $PEP_LOCAL_CONF_DIR/local.conf.libpEpCxx11 local.conf
  61. cp -r $PEP_LOCAL_CONF_DIR/intellij/.idea.libpEpCxx11 .idea
  62. }
  63. function clone_devWiki() {
  64. git clone ssh://wiki/var/lib/gitit/wikidata .
  65. }
  66. function clone_libtorrent() {
  67. git clone --recurse-submodules https://github.com/arvidn/libtorrent.git .
  68. }
  69. function mount_pepsioux() {
  70. sudo mount -t nfs -o resvport pepsioux:/home/heck /Volumes/pepsioux
  71. }
  72. alias test_pEpPythonAdapter='python3 -c "import pEp;"'