live-bootstrap/sysa/perl5.005_03/perl5.005_03.sh
Dor Askayo b03f3e11c0 Use rm -f to avoid interactive prompts
This is required when not running as root to avoid prompts when
removing read-only files.
2022-01-17 14:09:29 +02:00

30 lines
605 B
Bash
Executable file

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
# Regenerate bison files
rm -f perly.c perly.h
bison -d perly.y
mv perly.tab.c perly.c
mv perly.tab.h perly.h
# Regenerate other prebuilt header files
for file in embed keywords opcode; do
rm -f ${file}.h
perl ${file}.pl
done
rm -f regnodes.h
perl regcomp.pl
rm -f fbyterun.h byterun.c
perl bytecode.pl
}
src_install() {
# Remove old perl
rm -rf "${PREFIX}"/lib/perl5/
default
}