[gnome-sdk-images] Add /usr/lib/os-release
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sdk-images] Add /usr/lib/os-release
- Date: Sat, 24 Sep 2016 21:04:54 +0000 (UTC)
commit 149e8985adc4a0e15d7de04376bcd36ba4d43eb4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 24 17:04:39 2016 -0400
Add /usr/lib/os-release
Some tools (such as gnome-software) rely on this file.
Makefile | 2 +-
org.gnome.Sdk.json.in | 14 ++++++++++++++
os-release-configure | 9 +++++++++
os-release.in | 4 ++++
4 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/Makefile b/Makefile
index 51a9016..3eefec7 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ SDK_BRANCH=master
SDK_RUNTIME_VERSION=1.4
# Canned recipe for generating metadata
-SUBST_FILES=org.gnome.Sdk.json metadata.sdk metadata.platform
+SUBST_FILES=org.gnome.Sdk.json metadata.sdk metadata.platform os-release
define subst-metadata
@echo -n "Generating files: ${SUBST_FILES}... ";
@for file in ${SUBST_FILES}; do \
diff --git a/org.gnome.Sdk.json.in b/org.gnome.Sdk.json.in
index e6d40bc..fe41b58 100644
--- a/org.gnome.Sdk.json.in
+++ b/org.gnome.Sdk.json.in
@@ -800,6 +800,20 @@
"url": "git://git.gnome.org/gcr"
}
]
+ },
+ {
+ "name": "os-release",
+ "sources": [
+ {
+ "type": "file",
+ "path": "os-release"
+ },
+ {
+ "type": "file",
+ "path": "os-release-configure",
+ "dest-filename": "configure"
+ }
+ ]
}
]
}
diff --git a/os-release-configure b/os-release-configure
new file mode 100644
index 0000000..363795f
--- /dev/null
+++ b/os-release-configure
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+cat <<EOF > Makefile
+all:
+
+install:
+ mkdir -p $(DESTDIR)/usr/lib
+ install os-release $(DESTDIR)/usr/lib
+EOF
diff --git a/os-release.in b/os-release.in
new file mode 100644
index 0000000..477b6a5
--- /dev/null
+++ b/os-release.in
@@ -0,0 +1,4 @@
+NAME=GNOME
+VERSION=@@SDK_BRANCH@@ (Flatpak runtime)
+VERSION_ID=@@SDK_BRANCH@@
+ID=org.gnome.Platform
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]