live-bootstrap/sysa/perl-5.000/perl-5.000.sh

34 lines
595 B
Bash
Raw Normal View History

2021-02-14 15:36:05 +00:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
default
mv perl5-perl-5.000 perl-5.000
}
2021-02-14 15:36:05 +00:00
src_prepare() {
default
2021-02-14 15:36:05 +00:00
# Remove and regenerate bison files
rm -f perly.c perly.h
2021-02-14 15:36:05 +00:00
bison -d perly.y
mv perly.tab.c perly.c
mv perly.tab.h perly.h
# Regenerate embed.h
rm -f embed.h
2021-02-14 15:36:05 +00:00
./embed_h.SH
# Regenerate keywords.h
rm -f keywords.h
2021-02-14 15:36:05 +00:00
chmod +x keywords.sh
./keywords.sh
# Regenerate opcode.h
rm -f opcode.h
2021-02-14 15:36:05 +00:00
chmod +x opcode.sh
./opcode.sh
}