[gedit] flatpak: simplify generate-json-manifest.sh
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] flatpak: simplify generate-json-manifest.sh
- Date: Mon, 1 Aug 2022 18:32:27 +0000 (UTC)
commit e019884e75dc15e4427756e65cdcaaa4ba55115e
Author: Sébastien Wilmet <swilmet informatique-libre be>
Date: Mon Aug 1 20:13:03 2022 +0200
flatpak: simplify generate-json-manifest.sh
The less the better. A single command goes straight to the point and is
easier to understand, and to modify later on.
If yq is not installed, we get the usual command-not-found error.
When successful, we can then look at the git diff to see if the *.json
file changed.
The set -e is not needed for a single command.
And change a little the yq command, with a link to the project. It
doesn't change the result for the *.json file.
https://gitlab.gnome.org/GNOME/gedit/-/issues/515
build-aux/flatpak/generate-json-manifest.sh | 8 ++++++++
build-aux/flatpak/generate-manifest.sh | 29 -----------------------------
2 files changed, 8 insertions(+), 29 deletions(-)
---
diff --git a/build-aux/flatpak/generate-json-manifest.sh b/build-aux/flatpak/generate-json-manifest.sh
new file mode 100755
index 000000000..e12e9e3a6
--- /dev/null
+++ b/build-aux/flatpak/generate-json-manifest.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: Copyright 2022 Jake Dane
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# yq: A portable command-line YAML processor.
+# Currently hosted here: https://github.com/mikefarah/yq
+
+yq eval 'org.gnome.gedit.yml' --output-format json > 'org.gnome.gedit.json'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]