logo

live-bootstrap

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

pass1.sh (623B)


  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. rm -f embedvar.h
  14. for file in embed keywords opcode; do
  15. rm -f ${file}.h
  16. perl ${file}.pl
  17. done
  18. rm -f regnodes.h
  19. perl regcomp.pl
  20. rm -f byterun.h byterun.c ext/B/B/Asmdata.pm
  21. perl bytecode.pl
  22. }