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.

builddeb.sh 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #! /bin/sh
  2. # Build a debian package for amd64
  3. rm -Rf amath
  4. # Build
  5. sh configure
  6. make clean
  7. make
  8. mv amath amath.tmp
  9. make clean
  10. # Create filesystem layout
  11. rm -Rf amath
  12. mkdir -p amath/DEBIAN
  13. mkdir -p amath/usr/bin
  14. mkdir -p amath/usr/share/doc/amath
  15. mkdir -p amath/usr/local/share/amath
  16. mv amath.tmp amath/usr/bin/amath
  17. # Copy documentation
  18. cp LICENSE amath/usr/share/doc/amath/
  19. cp HISTORY amath/usr/share/doc/amath/
  20. cp build/debian/README amath/usr/share/doc/amath/
  21. # Copy scripts
  22. cp script/* amath/usr/local/share/amath/
  23. # Make the package
  24. cp build/debian/control-amd64 amath/DEBIAN/control
  25. dpkg-deb --build amath
  26. mv amath.deb amath-1.6.3_amd64.deb
  27. # Build a debian package for i386
  28. rm -Rf amath
  29. # Build
  30. sh configure -m32
  31. make clean
  32. make
  33. mv amath amath.tmp
  34. make clean
  35. # Create filesystem layout
  36. rm -Rf amath
  37. mkdir -p amath/DEBIAN
  38. mkdir -p amath/usr/bin
  39. mkdir -p amath/usr/share/doc/amath
  40. mkdir -p amath/usr/local/share/amath
  41. mv amath.tmp amath/usr/bin/amath
  42. # Copy documentation
  43. cp LICENSE amath/usr/share/doc/amath/
  44. cp HISTORY amath/usr/share/doc/amath/
  45. cp build/debian/README amath/usr/share/doc/amath/
  46. # Copy scripts
  47. cp script/* amath/usr/local/share/amath/
  48. # Make the package
  49. cp build/debian/control-i386 amath/DEBIAN/control
  50. dpkg-deb --build amath
  51. mv amath.deb amath-1.6.3_i386.deb
  52. # Cleanup
  53. #rm -Rf amath