From 4c2210109f0cdb954103480d3ff28111a884119f Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 22 Feb 2026 13:09:53 +0100 Subject: [PATCH] Extract awk script into a file --- .gitea/deploy.awk | 4 ++++ .gitea/workflows/build.yaml | 2 +- .gitea/workflows/deploy.yaml | 4 ++-- CMakeLists.txt | 2 +- data/CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- src/main.cpp | 2 +- src/timedate.cpp | 2 +- src/timedate.h | 2 +- 9 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 .gitea/deploy.awk diff --git a/.gitea/deploy.awk b/.gitea/deploy.awk new file mode 100644 index 0000000..d330a5b --- /dev/null +++ b/.gitea/deploy.awk @@ -0,0 +1,4 @@ +{ + gsub(/^v/, "slack-timedate-") + print $0 +} diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a61bd06..684e638 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -15,7 +15,7 @@ jobs: shell: ash {0} run: | apk -U upgrade - apk add --no-cache git bash cmake build-base pkgconf glibmm-dev dbus-dev + apk add --no-cache git bash cmake build-base pkgconf glibmm2.66-dev dbus-dev - uses: actions/checkout@v4 - name: Build run: | diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index dc623bc..e60bec8 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -7,12 +7,12 @@ on: jobs: deploy: - runs-on: buildenv + container: buildenv:5 steps: - uses: actions/checkout@v4 - name: Archive run: | - DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk '{ gsub(/^v/, "slack-timedate-"); print $0 }') + DISTRIBUTION=$(echo $GITHUB_REF_NAME | awk -f .gitea/deploy.awk) ln -s . $DISTRIBUTION touch $DISTRIBUTION.tar.xz tar --exclude="${DISTRIBUTION}/${DISTRIBUTION}*" --exclude-vcs -Jcvhf $DISTRIBUTION.tar.xz $DISTRIBUTION diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c9d1b0..155e5d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2025 Eugen Wissner +# Copyright (C) 2013-2026 Eugen Wissner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 394989c..c256b07 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2025 Eugen Wissner +# Copyright (C) 2013-2026 Eugen Wissner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3ce7c6a..730c868 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2025 Eugen Wissner +# Copyright (C) 2013-2026 Eugen Wissner # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/main.cpp b/src/main.cpp index 92deafc..9047b6f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2025 Eugen Wissner + * Copyright (C) 2013-2026 Eugen Wissner * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/timedate.cpp b/src/timedate.cpp index 3c17ffc..3615271 100644 --- a/src/timedate.cpp +++ b/src/timedate.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2025 Eugen Wissner + * Copyright (C) 2013-2026 Eugen Wissner * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/timedate.h b/src/timedate.h index 31d0621..07f0aae 100644 --- a/src/timedate.h +++ b/src/timedate.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2025 Eugen Wissner + * Copyright (C) 2013-2026 Eugen Wissner * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by