refactoring.sh 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #!/bin/sh
  2. # Script to do refactoring of duma.. (put all files in extra subfolders to
  3. # make it somewhat more organized ;-)
  4. # planned folder structure:
  5. #
  6. # contrib/ <-- contribution: serveral bash/gdb scripts
  7. # contrib/debian <-- debian files? outdated!
  8. # contrib/ebuild <-- gentoo files?
  9. # contrib/rpm <-- rpm spec file?
  10. #
  11. # doc/ <-- documentation goes here
  12. # doc/comparisons/ <-- copy of JP Martin's site
  13. #
  14. # include/ <-- headers go in here
  15. # include/duma/ <-- duma headers go in here
  16. # include/dumadetours/ <-- dumadetours headers go in here
  17. #
  18. # lib/ <-- compiled (shared) libs
  19. # obj/ <-- compiled objects
  20. #
  21. # src/ <-- sources go in here
  22. # src/libduma/ <-- duma sources go in here
  23. #### src/dumadetours/ <-- dumadetours sources go in here. --- not necessary
  24. # test/ <-- test programs used to check the integrity of duma
  25. # go in here
  26. # examples/ <-- example code
  27. # examples/cpp <-- C++ examples
  28. # examples/C <-- C examples (TODO ?)
  29. # prj/ <-- project files
  30. # win32-*, codeblocks, later: eclipse
  31. #
  32. mkdir contrib
  33. mv gdbinit.rc contrib/
  34. mv duma.sh contrib/
  35. mv builddocs.bat contrib/
  36. mv mkclean.bat contrib/
  37. mkdir doc
  38. mv README.txt doc/
  39. mv INSTALL doc/
  40. mv CHANGELOG doc/
  41. mv TODO doc/
  42. mv duma.3 doc/
  43. mv WIN32_DETOURS_HOWTO.txt doc/
  44. mv comparisons doc/
  45. mkdir include
  46. mkdir include/duma
  47. mv noduma.h include/duma/
  48. mv duma.h include/duma/
  49. mv dumapp.h include/duma/
  50. mv duma_sem.h include/duma/
  51. mv duma_config.h include/duma/
  52. # mkdir include/dumadetours
  53. mkdir lib
  54. mkdir obj
  55. mkdir src
  56. mkdir src/libduma
  57. mv duma.c src/libduma/
  58. mv duma_hlp.h src/libduma/
  59. mv paging.h src/libduma/
  60. mv print.h src/libduma/
  61. mv print.c src/libduma/
  62. mv sem_inc.c src/libduma/
  63. mv dumapp.cpp src/libduma/
  64. mkdir src/conf
  65. mv createconf.c src/conf/
  66. mv stacktrace src/
  67. mkdir examples
  68. mkdir examples/cpp
  69. mv example*cpp examples/cpp/
  70. mkdir prj
  71. mv win32-* prj/
  72. mv codeblocks prj/