Makefile,autoport: use external VERSION file instead of editing autoport file upon make dist command
This commit is contained in:
parent
6773997ebe
commit
e952c25d5a
4
Makefile
4
Makefile
@ -1,5 +1,5 @@
|
|||||||
# Makefile for autodist
|
# 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
|
PACKAGE = autodist
|
||||||
|
|
||||||
@ -38,7 +38,6 @@ distdir = $(PACKAGE)-$(VERSION)
|
|||||||
dist_archive = $(distdir).tar.bz2
|
dist_archive = $(distdir).tar.bz2
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@sed -i "s|^VERSION=.*|VERSION=$(VERSION)|" autodist autoport
|
|
||||||
|
|
||||||
install-dirs:
|
install-dirs:
|
||||||
@$(INSTALL_DIR) $(DESTDIR)$(configdir)/scripts
|
@$(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/openmamba_bot.py $(DESTDIR)$(pck_datadir)/openmamba_bot.py
|
||||||
@$(INSTALL_SCRIPT) telegram/requirements.txt $(DESTDIR)$(pck_datadir)/requirements.txt
|
@$(INSTALL_SCRIPT) telegram/requirements.txt $(DESTDIR)$(pck_datadir)/requirements.txt
|
||||||
@$(INSTALL_SCRIPT) repology-openmamba.py $(DESTDIR)$(pck_datadir)/repology-openmamba.py
|
@$(INSTALL_SCRIPT) repology-openmamba.py $(DESTDIR)$(pck_datadir)/repology-openmamba.py
|
||||||
|
@$(INSTALL_DATA) VERSION $(DESTDIR)$(pck_datadir)/VERSION
|
||||||
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)
|
@cp -a webbuild/html/* $(DESTDIR)$(htmldir)
|
||||||
|
|
||||||
install-data:
|
install-data:
|
||||||
|
8
autoport
8
autoport
@ -1,22 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# autoport -- batch cross-build tool based on autodist
|
# 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
|
# Released under the terms of the GNU GPL release 3 license
|
||||||
#
|
#
|
||||||
VERSION=1.6.2
|
. /usr/share/autodist/VERSION
|
||||||
|
|
||||||
BASE_REPOSITORY=base
|
BASE_REPOSITORY=base
|
||||||
PORT_REPOSITORY=base
|
PORT_REPOSITORY=base
|
||||||
|
|
||||||
. /etc/autodist/config
|
. /etc/autodist/config
|
||||||
|
|
||||||
me=(${0##*/} $VERSION "Sat Mar 20 2011")
|
me=(${0##*/} $VERSION)
|
||||||
|
|
||||||
function usage() {
|
function usage() {
|
||||||
echo "\
|
echo "\
|
||||||
${me[0]} ${me[1]}
|
${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"
|
"$"Released under the terms of the GNU GPL v3 license"
|
||||||
echo "
|
echo "
|
||||||
"$"Batch port and cross-build tool based on autodist.""
|
"$"Batch port and cross-build tool based on autodist.""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user