save-objs.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #! /bin/bash
  2. dest=${r38_archive:-acn1@codemist.dyndns.org:/d/r38}
  3. echo "Save object files to $dest [use r38_archive to override]"
  4. # Create a set of .o files and pack them up ready for use
  5. # in a distribution.
  6. case `pwd` in
  7. *win32 | *win64) EXEEXT=".exe"
  8. ;;
  9. *) EXEEXT=""
  10. ;;
  11. esac
  12. case `pwd` in
  13. *demo*win64)
  14. rm fasl.obj gc.obj preserve.obj
  15. make r38$EXEEXT
  16. tar cfz objs.tgz *.obj -C ../fox64/lib libFOX-1.6.lib
  17. ;;
  18. *demo*)
  19. rm fasl.o gc.o preserve.o
  20. make r38$EXEEXT
  21. tar cfz objs.tgz *.o -C ../fox/lib libFOX-1.6.a libFOX-1.6.la
  22. ;;
  23. *win64)
  24. make r38$EXEEXT
  25. make slowr38$EXEEXT
  26. make csl$EXEEXT
  27. make fwindemo$EXEEXT
  28. make termdemo$EXEEXT
  29. tar cfz objs.tgz *.obj -C ../fox64/lib libFOX-1.6.lib
  30. ;;
  31. *)
  32. make r38$EXEEXT
  33. make slowr38$EXEEXT
  34. make csl$EXEEXT
  35. make fwindemo$EXEEXT
  36. make termdemo$EXEEXT
  37. tar cfz objs.tgz *.o -C ../fox/lib libFOX-1.6.a libFOX-1.6.la
  38. ;;
  39. esac
  40. here=`pwd`
  41. here=${here##*/}
  42. here=${here#local-}
  43. # Note that demo versions will end up as demo-win32 (eg) while the
  44. # regular releases will just end up as win32 (eg).
  45. echo Destination: $here
  46. scp objs.tgz $dest/objects/${here}.tgz
  47. echo Object files for `pwd` saved