logo

live-bootstrap

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

pass1.sh (584B)


  1. # SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
  2. # SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. src_prepare() {
  6. default
  7. # Regenerate bison files
  8. rm -f perly.c perly.h
  9. bison -d perly.y
  10. mv perly.tab.c perly.c
  11. mv perly.tab.h perly.h
  12. # Regenerate other prebuilt header files
  13. for file in embed keywords opcode; do
  14. rm -f ${file}.h
  15. perl ${file}.pl
  16. done
  17. rm -f regnodes.h
  18. perl regcomp.pl
  19. rm -f fbyterun.h byterun.c
  20. perl bytecode.pl
  21. }