Makefile,autoport: use external VERSION file instead of editing autoport file upon make dist command

This commit is contained in:
Silvan Calarco 2025-03-11 19:21:47 +01:00
parent 6773997ebe
commit e952c25d5a
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Makefile for autodist
# Copyright (C) 2006-2021 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2006-2025 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
PACKAGE = autodist
@ -38,7 +38,6 @@ distdir = $(PACKAGE)-$(VERSION)
dist_archive = $(distdir).tar.bz2
default:
@sed -i "s|^VERSION=.*|VERSION=$(VERSION)|" autodist autoport
install-dirs:
@$(INSTALL_DIR) $(DESTDIR)$(configdir)/scripts
@ -91,6 +90,7 @@ install-programs:
@$(INSTALL_SCRIPT) telegram/openmamba_bot.py $(DESTDIR)$(pck_datadir)/openmamba_bot.py
@$(INSTALL_SCRIPT) telegram/requirements.txt $(DESTDIR)$(pck_datadir)/requirements.txt
@$(INSTALL_SCRIPT) repology-openmamba.py $(DESTDIR)$(pck_datadir)/repology-openmamba.py
@$(INSTALL_DATA) VERSION $(DESTDIR)$(pck_datadir)/VERSION
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)
install-data:

View File

@ -1,22 +1,22 @@
#!/bin/bash
# autoport -- batch cross-build tool based on autodist
# Copyright (C) 2011-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2011-2025 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# Released under the terms of the GNU GPL release 3 license
#
VERSION=1.6.2
. /usr/share/autodist/VERSION
BASE_REPOSITORY=base
PORT_REPOSITORY=base
. /etc/autodist/config
me=(${0##*/} $VERSION "Sat Mar 20 2011")
me=(${0##*/} $VERSION)
function usage() {
echo "\
${me[0]} ${me[1]}
"$"Copyright (C) 2011-2023 Silvan Calarco <silvan.calarco@mambasoft.it>""
"$"Copyright (C) 2011-2025 Silvan Calarco <silvan.calarco@mambasoft.it>""
"$"Released under the terms of the GNU GPL v3 license"
echo "
"$"Batch port and cross-build tool based on autodist.""