coreutils: various fixes.

* Properly define coreutils versions, so that it is available in --version
* Move after tar. Later we can move this after gettext/texinfo too.
* There are no prebuilt files in git archive, remove function to delete info files.
This commit is contained in:
Andrius Štikonas 2021-05-24 21:32:51 +01:00
parent 059ba1afc2
commit a4889dfb9e
5 changed files with 121 additions and 125 deletions

View file

@ -2,12 +2,6 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Remove pre-generated files from source code.
remove_generated_files() {
find . -name '*.info' -delete
find . -name '*.gmo' -delete
}
regenerate_files() {
build-aux/gen-lists-of-programs.sh --autoconf > m4/cu-progs.m4
build-aux/gen-lists-of-programs.sh --automake > src/cu-progs.mk
@ -21,13 +15,15 @@ regenerate_files() {
# dependency.
cp man/dummy-man man/help2man
VERSION=$(basename ${BASH_SOURCE[0]} .sh | sed 's/coreutils-//')
echo $VERSION > .tarball-version
# We don't have autopoint from gettext yet.
AUTOPOINT=true autoreconf-2.69 -fi
}
src_prepare() {
default
remove_generated_files
regenerate_files
}