Simple command line calculator http://amath.innolan.net
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.

buildsrc 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/sh
  2. #
  3. # This file is public domain
  4. #
  5. # Project homepage:
  6. # https://amath.innolan.net
  7. #
  8. # DO NOT USE THIS SCRIPT UNLESS YOU KNOW WHAT YOU ARE DOING !
  9. version='1.8.4'
  10. stamp="201808050000"
  11. srcdir="amath-rc"
  12. distdir="amath-${version}"
  13. cd ..
  14. rm -f amath-${version}.tar.gz
  15. rm -Rf amath-${version}
  16. mkdir -m 775 ${distdir}
  17. mkdir -m 775 ${distdir}/src/
  18. mkdir -m 775 ${distdir}/src/clib/
  19. mkdir -m 775 ${distdir}/src/cplex/
  20. mkdir -m 775 ${distdir}/src/lib/
  21. mkdir -m 775 ${distdir}/src/loc/
  22. mkdir -m 775 ${distdir}/src/real/
  23. mkdir -m 775 ${distdir}/src/system/
  24. mkdir -m 775 ${distdir}/src/main/
  25. mkdir -m 775 ${distdir}/src/main/function
  26. mkdir -m 775 ${distdir}/src/main/statement/
  27. mkdir -m 775 ${distdir}/script/
  28. mkdir -m 775 ${distdir}/text/
  29. mkdir -m 775 ${distdir}/catalog/
  30. mkdir -m 775 ${distdir}/catalog/english/
  31. mkdir -m 775 ${distdir}/build/
  32. mkdir -m 775 ${distdir}/build/flexcat/
  33. install -m 664 ${srcdir}/src/*.h ${distdir}/src/
  34. install -m 664 ${srcdir}/src/*.cpp ${distdir}/src/
  35. install -m 664 ${srcdir}/src/clib/* ${distdir}/src/clib/
  36. install -m 664 ${srcdir}/src/cplex/* ${distdir}/src/cplex/
  37. install -m 664 ${srcdir}/src/lib/* ${distdir}/src/lib/
  38. install -m 664 ${srcdir}/src/loc/* ${distdir}/src/loc/
  39. install -m 664 ${srcdir}/src/real/* ${distdir}/src/real/
  40. install -m 664 ${srcdir}/src/system/* ${distdir}/src/system/
  41. install -m 664 ${srcdir}/src/main/*.h ${distdir}/src/main/
  42. install -m 664 ${srcdir}/src/main/*.cpp ${distdir}/src/main/
  43. install -m 664 ${srcdir}/src/main/function/* ${distdir}/src/main/function/
  44. install -m 664 ${srcdir}/src/main/statement/* ${distdir}/src/main/statement/
  45. install -m 664 ${srcdir}/script/* ${distdir}/script/
  46. install -m 664 ${srcdir}/text/* ${distdir}/text/
  47. install -m 664 ${srcdir}/catalog/english/* ${distdir}/catalog/english/
  48. install -m 664 ${srcdir}/build/flexcat/* ${distdir}/build/flexcat/
  49. install -m 664 ${srcdir}/HISTORY ${distdir}/
  50. install -m 664 ${srcdir}/LICENSE ${distdir}/
  51. install -m 664 ${srcdir}/README ${distdir}/
  52. install -m 664 ${srcdir}/amath.1 ${distdir}/
  53. install -m 775 ${srcdir}/configure ${distdir}/
  54. install -m 775 ${srcdir}/builddist ${distdir}/
  55. install -m 775 ${srcdir}/buildwin ${distdir}/
  56. chown -R 1000:1000 ${distdir}
  57. for f in $(find ${distdir} -name '*'); do touch -amt ${stamp}.00 $f; done
  58. tar --numeric-owner -cvzf amath-${version}.tar.gz ${distdir}