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.2KB

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