2
0

README 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Author: Jörn Hartroth
  2. DESCRIPTION
  3. (If you're only looking for precompiled win32 binaries, go visit
  4. https://curl.haxx.se/download.html)
  5. Packaging of the curl binaries for Win32 should at this point in time be based
  6. on the InfoZip (zip/unzip) archiver family as the de-facto standard for
  7. Windows archives. A package should contain the main binary curl.exe along with
  8. the appropriate documentation and license information files. For development
  9. releases, you should also include the header directory and probably the
  10. compiled binaries of libcurl and the appropriate Makefiles/project definition
  11. files for the compiler used.
  12. A simple packaging mechanism can be based on a set of batch files which call
  13. zip.exe with the appropriate files from the curl distribution - see the
  14. samples included below (Long lines have been split with "\" as the split
  15. marker, you'll want to rejoin the pieces to be all on one line in the batch
  16. file). Call any of these batch files - after compiling the curl binaries -
  17. with a single parameter specifying the name of the archive file to be created.
  18. It is implicitly assumed that all of the binary files (curl.exe, libcurl.a,
  19. etc) have previously been copied to the main directory of the curl source
  20. package (the directory where the main README resides), because that is where
  21. they should end up in the zip archive. The archive should *not* be built with
  22. absolute path information because the user will want to locally extract the
  23. archive contents and shift the binaries to his executable directory.
  24. SCRIPT_TEMPLATES
  25. curlpkg.bat:
  26. zip -9 %1 curl.exe CHANGES LEGAL MPL-1.0.txt README \
  27. docs/FAQ docs/FEATURES docs/README.curl docs/README.win32 docs/TODO
  28. curldevpkg.bat:
  29. zip -9 %1 curl.exe include\README include\curl\*.h CHANGES docs\* \
  30. curl.spec curl-ssl.spec LEGAL lib/Makefile.m32 src/Makefile.m32 \
  31. libcurl.a libcurl.dll libcurldll.a MPL-1.0.txt README
  32. PROCEDURE_EXAMPLE
  33. A standard packaging routine (for MingW32) using the above batch files could
  34. go like this:
  35. (No SSL) (With SSL)
  36. cd <curl-sourcedir>\lib cd <curl-sourcedir>\lib
  37. make -f Makefile.m32 make -f Makefile.m32 SSL=1
  38. cd ..\src cd ..\src
  39. make -f Makefile.m32 make -f Makefile.m32 SSL=1
  40. cd .. cd ..
  41. copy lib\libcurl.a . copy lib\libcurl.a .
  42. copy src\curl.exe . copy src\curl.exe .
  43. curlpkg curl-win32-nossl.zip curlpkg curl-win32-ssl.zip