From 5dd1f6569d45a01be63ce85ae0b86cffcbae88f1 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 07 Nov 2020 04:25:32 -0500 Subject: Version package names Diffstat with similarity index set to 24%: basever.mk | 1 + build | 25 +++++++++++++------------ changelog | 4 +++- {linux-common.pkg => linux-common-4.19.pkg}/control | 5 +++-- {linux-common.pkg => linux-common-4.19.pkg}/docs | 0 {linux-image.pkg => linux-image-4.19.pkg}/control | 6 +++--- {linux-image.pkg => linux-image-4.19.pkg}/postinst | 0 {linux-image.pkg => linux-image-4.19.pkg}/postrm | 0 {linux-image.pkg => linux-image-4.19.pkg}/preinst | 0 {linux-image.pkg => linux-image-4.19.pkg}/prerm | 0 {linux-libc-dev.pkg => linux-libc-dev-4.19.pkg}/control | 4 ++-- {linux-libc-dev-common.pkg => linux-libc-dev-common-4.19.pkg}/control | 2 +- {linux-sysmap.pkg => linux-sysmap-4.19.pkg}/control | 7 ++++--- setver | 17 +++++++++++++++++ substvars | 1 + 15 files changed, 48 insertions(+), 24 deletions(-) --- (limited to 'setver') diff --git a/setver b/setver new file mode 100755 index 0000000..14efac1 --- /dev/null +++ b/setver @@ -0,0 +1,17 @@ +#!/bin/sh + +set -eu + +OPK_SOURCE="$(sed 's/ .*//; q;' changelog)" +BASE_VERSION="${OPK_SOURCE#linux-libre-}" +GIT='' +[ -d .git/ ] && GIT='git' + +for pkg in *.pkg/; do + ${GIT} mv "${pkg}" "${pkg%-*.pkg/}-${BASE_VERSION}.pkg/" +done + +printf 'VER = %s\n' "${BASE_VERSION}" 1>basever.mk +mv substvars substvars~ +sed "s/^Base-Version:.*$/Base-Version: ${BASE_VERSION}/" substvars~ 1>substvars +rm substvars~ -- cgit v0.9.1