makepack 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/bin/sh
  2. #
  3. # Shell script to make a FPC .tar package for Linux
  4. # Copyright 1996-2000 Michael Van Canneyt and Peter Vreman
  5. #
  6. # Version
  7. VERSION=1.9.0
  8. RELEASE=ELF
  9. unset FPCDIR
  10. # Goto the toplevel if necessary
  11. [ -d install ] || cd ..
  12. make linuxzip
  13. if [ $? != 0 ]; then
  14. echo Failed to make distribution archive.
  15. exit 1
  16. fi
  17. make docs
  18. if [ $? != 0 ]; then
  19. echo Failed to make documentation archive.
  20. exit 1
  21. fi
  22. make sourcezip
  23. if [ $? != 0 ]; then
  24. echo Failed to make source archive.
  25. exit 1
  26. fi
  27. make docsrc
  28. if [ $? != 0 ]; then
  29. echo Failed to make documentation source archive.
  30. exit 1
  31. fi
  32. make demozip
  33. if [ $? != 0 ]; then
  34. echo Failed to make demo source archive.
  35. exit 1
  36. fi
  37. SOURCES=`/bin/ls *src.tar.gz`
  38. FILES=`/bin/ls *linux.tar.gz *exm.tar.gz`
  39. RELFILES="binary.tar sources.tar demo.tar.gz docs.tar.gz install.sh"
  40. echo Creating binary.tar
  41. tar cf binary.tar $FILES
  42. if [ $? != 0 ]; then
  43. echo Failed to create binary.tar
  44. exit 1
  45. fi
  46. echo Creating sources.tar
  47. tar cf sources.tar $SOURCES
  48. if [ $? != 0 ]; then
  49. echo Failed to create sources.tar
  50. exit 1
  51. fi
  52. echo Copying install.sh
  53. cp install/install.sh .
  54. chmod 755 install.sh
  55. echo Creating fpc-$VERSION.$RELEASE.tar
  56. tar cf fpc-$VERSION.$RELEASE.tar $RELFILES
  57. if [ $? != 0 ]; then
  58. echo Failed to create fpc-$VERSION.$RELEASE.tar
  59. exit 1
  60. fi