logo

live-bootstrap

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

import-gnulib.sh (1064B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. set -e
  6. gnulib_modules='
  7. argmatch
  8. dirname
  9. error
  10. exitfail
  11. extensions
  12. getopt
  13. gettext
  14. hard-locale
  15. hash
  16. malloc
  17. mbswidth
  18. obstack
  19. quote
  20. quotearg
  21. stdbool
  22. stdio-safer
  23. strerror
  24. strtoul
  25. strverscmp
  26. unistd-safer
  27. unlocked-io
  28. verify
  29. xalloc
  30. xalloc-die
  31. xstrndup
  32. '
  33. # Copy over needed files
  34. for i in ${gnulib_modules}; do
  35. for f in $(../gnulib-b28236b/gnulib-tool --extract-filelist "${i}") \
  36. lib/wcwidth.h; do
  37. cp -pf "../gnulib-b28236b/${f}" "./${f}"
  38. done
  39. done
  40. # Generate the things
  41. (echo '# This file is generated automatically by "bootstrap".' &&
  42. echo 'AC_DEFUN([GNULIB_AUTOCONF_SNIPPET],[' &&
  43. ../gnulib-b28236b/gnulib-tool --extract-autoconf-snippet $gnulib_modules &&
  44. echo '])'
  45. ) > m4/gnulib.m4
  46. (echo '# This file is generated automatically by "bootstrap".' &&
  47. ../gnulib-b28236b/gnulib-tool --extract-automake-snippet $gnulib_modules |
  48. sed 's/^[ ]*AM_CPPFLAGS[ ]*+=/# (commented out by bootstrap) &/'
  49. ) > lib/gnulib.mk