From d9e4e1ab0a565f780de9603025fad80151241ab7 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 29 Jul 2011 17:49:54 +0000 Subject: [PATCH] Introduce new versioning schema. Create a version information file in the system. --- Makefile | 10 +++++++++- functions | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 85a5caeb..6f11b79c 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ NAME = network -VER = 0.99.0 +VER = 001 DESTDIR= +# File to store the version number in. +VERSION_FILE = $(DESTDIR)/lib/network/version + all: @echo "Nothing to do here." @@ -27,6 +30,11 @@ install: ln -svf ip-updown ${DESTDIR}/etc/ppp/ipv6-down install -m 755 -v ppp/dialer $(DESTDIR)/etc/ppp + # Create the version file. + : > ${VERSION_FILE} + echo "# This file is automatically generated." >> ${VERSION_FILE} + echo "NETWORK_VERSION=$(VER)" >> ${VERSION_FILE} + dist: git archive --format tar --prefix $(NAME)-$(VER)/ HEAD | gzip -9 > \ $(NAME)-$(VER).tar.gz diff --git a/functions b/functions index befdd145..b1836f82 100644 --- a/functions +++ b/functions @@ -13,6 +13,9 @@ function init_run() { done } +# Include version information. +. /lib/network/version + for file in /lib/network/functions.*; do . ${file} done -- 2.39.2