Fix bug in 9.2.0.2

* Add code I forgot for machine_arch for Linux
* Add Makefile to make making releases easier
This commit is contained in:
Michael Erdely 2025-01-11 14:45:28 -05:00
parent 53e0e8b8f0
commit cb7f7785c8
Signed by: mike
SSH key fingerprint: SHA256:ukbnfrRMaRYlBZXENtBTyO2jLnql5AA5m+SzZCfYQe0
6 changed files with 22 additions and 6 deletions

View file

@ -1,9 +1,16 @@
TEMP_DIR := $(shell mktemp -d)
WORK_DIR := $(TEMP_DIR)/TA-unix
TAR_FILE := ./ta-for-unix-and-linux-`head -n1 VERSION`.tgz
VERSION := $(shell head -n1 VERSION)
TAR_FILE := ./ta-for-unix-and-linux-$(VERSION).tgz
all: release
updateversion:
ifndef NEWVERSION
$(error NEWVERSION is not specified. Usage make NEWVERSION=<newversion> updateversion)
endif
sed -ri "s/$(VERSION)/$(NEWVERSION)/g" app.manifest default/app.conf VERSION
release:
mkdir -p $(WORK_DIR)
cp -R . $(WORK_DIR)/

View file

@ -1,2 +1,2 @@
9.2.0.2
9.2.0.2
9.2.0.3
9.2.0.3

View file

@ -29,7 +29,7 @@
"id": {
"group": null,
"name": "TA-nix",
"version": "9.2.0.2"
"version": "9.2.0.3"
},
"license": {
"name": "Splunk Software License Agreement",

View file

@ -21,6 +21,8 @@ if [ "$KERNEL" = "Linux" ] ; then
[ -r /etc/debian_version ] && grep -Eq "^[0-9.]+$" /etc/debian_version && os_release=$(cat /etc/debian_version)
[ "$BUILD_ID" = "rolling" ] && os_release=rolling
[ "$BUILD_ID" = "rolling" ] && os_version=rolling
which dpkg > /dev/null 2>&1 && machine_arch=$(dpkg --print-architecture)
[ "$NAME" = "Arch Linux" -o "$NAME" = "Arch Linux ARM" ] && machine_arch=$(uname -m | sed -r "s/(armv7l|aarch64)/arm64/;s/x86_64/amd64/")
CMD="eval date ; eval uname -m ; eval uname -r ; eval uname -s ; eval uname -v ; echo $machine_arch; echo $os_release; echo $os_version; echo $distro_name"
elif [ "$KERNEL" = "Darwin" ] ; then

View file

@ -17,7 +17,7 @@ docs_section_override = AddOns:released
[launcher]
author = Michael Erdely
version = 9.2.0.2
version = 9.2.0.3
description = Technical Add-on for Unix and Linux
#[package]
@ -26,5 +26,5 @@ description = Technical Add-on for Unix and Linux
[id]
name = TA-unix
version = 9.2.0.2
version = 9.2.0.3

View file

@ -1,5 +1,12 @@
# Technical Add-on for Unix and Linux
## Version 9.2.0.3
Fix bug in 9.2.0.2
* Add code I forgot for machine_arch for Linux
* Add Makefile to make making releases easier
## Version 9.2.0.2
Improvements for version.sh