[gnome-sdk-images/gnome-3-20] Add /usr/lib/os-release
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sdk-images/gnome-3-20] Add /usr/lib/os-release
- Date: Fri, 20 Jan 2017 13:17:38 +0000 (UTC)
commit ba1a41b12010adb58b0fd54910ed069366d68b1b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 22 10:40:24 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 59af211..c811fa5 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ SDK_BRANCH=3.20
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 aacbbfe..94a9410 100644
--- a/org.gnome.Sdk.json.in
+++ b/org.gnome.Sdk.json.in
@@ -780,6 +780,20 @@
"commands": ["autoreconf -f"]
}
]
+ },
+ {
+ "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 100755
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]