logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

help.patch (1834B)


  1. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  2. #
  3. # SPDX-License-Identifier: curl
  4. Regenerating help is not trivial. Help is unnecessary.
  5. Disable help.
  6. diff -ru src/Makefile.inc src/Makefile.inc
  7. --- curl-8.5.0/src/Makefile.inc
  8. +++ curl-8.5.0/src/Makefile.inc
  9. @@ -76,12 +76,10 @@
  10. tool_formparse.c \
  11. tool_getparam.c \
  12. tool_getpass.c \
  13. - tool_help.c \
  14. tool_helpers.c \
  15. tool_hugehelp.c \
  16. tool_ipfs.c \
  17. tool_libinfo.c \
  18. - tool_listhelp.c \
  19. tool_main.c \
  20. tool_msgs.c \
  21. tool_operate.c \
  22. @@ -120,7 +118,6 @@
  23. tool_formparse.h \
  24. tool_getparam.h \
  25. tool_getpass.h \
  26. - tool_help.h \
  27. tool_helpers.h \
  28. tool_hugehelp.h \
  29. tool_ipfs.h \
  30. diff -ru src/tool_operate.c src/tool_operate.c
  31. --- curl-8.5.0/src/tool_operate.c
  32. +++ curl-8.5.0/src/tool_operate.c
  33. @@ -78,7 +78,6 @@
  34. #include "tool_writeout.h"
  35. #include "tool_xattr.h"
  36. #include "tool_vms.h"
  37. -#include "tool_help.h"
  38. #include "tool_hugehelp.h"
  39. #include "tool_progress.h"
  40. #include "tool_ipfs.h"
  41. @@ -2746,19 +2745,7 @@
  42. if(res) {
  43. result = CURLE_OK;
  44. - /* Check if we were asked for the help */
  45. - if(res == PARAM_HELP_REQUESTED)
  46. - tool_help(global->help_category);
  47. - /* Check if we were asked for the manual */
  48. - else if(res == PARAM_MANUAL_REQUESTED)
  49. - hugehelp();
  50. - /* Check if we were asked for the version information */
  51. - else if(res == PARAM_VERSION_INFO_REQUESTED)
  52. - tool_version_info();
  53. - /* Check if we were asked to list the SSL engines */
  54. - else if(res == PARAM_ENGINES_REQUESTED)
  55. - tool_list_engines();
  56. - else if(res == PARAM_LIBCURL_UNSUPPORTED_PROTOCOL)
  57. + if(res == PARAM_LIBCURL_UNSUPPORTED_PROTOCOL)
  58. result = CURLE_UNSUPPORTED_PROTOCOL;
  59. else if(res == PARAM_READ_ERROR)
  60. result = CURLE_READ_ERROR;