Commit 7ba750df authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Move out commit rules to a shared script

This avoids duplication and lets us easily make it more complex later.
parent 4f8fffb2
......@@ -95,53 +95,19 @@ repository:
ostree init --mode=archive-z2 --repo=repository
commit-platform: repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz
rm -rf commit
mkdir -p commit
tar xf gnome-platform.tar.gz -C commit
ostree commit --repo=repository --branch=runtime/org.gnome.Platform/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
rm -rf commit
mkdir -p commit
tar xf gnome-platform-rpmdb.tar.gz -C commit
ostree commit --repo=repository --branch=runtime/org.gnome.Platform.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
./commit.sh repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
rm -rf commit
mkdir -p commit
tar xf gnome-sdk.tar.gz -C commit
ostree commit --repo=repository --branch=runtime/org.gnome.Sdk/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
rm -rf commit
mkdir -p commit
tar xf gnome-sdk-rpmdb.tar.gz -C commit
ostree commit --repo=repository --branch=runtime/org.gnome.Sdk.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "commit" commit
./commit.sh repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
commit: commit-sdk commit-platform
release-commit-platform: release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz
rm -rf commit
mkdir -p commit
tar xf gnome-platform.tar.gz -C commit
ostree commit --repo=release/repo --branch=runtime/org.gnome.Platform/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Platform/x86_64/3.16
rm -rf commit
mkdir -p commit
tar xf gnome-platform-rpmdb.tar.gz -C commit
ostree commit --repo=release/repo --branch=runtime/org.gnome.Platform.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Platform.Var/x86_64/3.16
ostree summary -u --repo=release/repo
./commit.sh release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
release-commit-sdk: release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
rm -rf commit
mkdir -p commit
tar xf gnome-sdk.tar.gz -C commit
ostree commit --repo=release/repo --branch=runtime/org.gnome.Sdk/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Sdk/x86_64/3.16
rm -rf commit
mkdir -p commit
tar xf gnome-sdk-rpmdb.tar.gz -C commit
ostree commit --repo=release/repo --branch=runtime/org.gnome.Sdk.Var/$(ARCH)/$(VERSION) --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
ostree static-delta generate --repo=release/repo --min-fallback-size 1 --empty runtime/org.gnome.Sdk.Var/x86_64/3.16
ostree summary -u --repo=release/repo
./commit.sh release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
release-commit: release-commit-sdk release-commit-platform
......
#!/bin/sh
REPO=$1
TAR=$2
TAR_VAR=$3
METADATA=$4
NAME=$5
ARCH=$6
VERSION=$7
set -x
rm -rf commit
mkdir -p commit
tar xf ${TAR} -C commit
cp ${METADATA} commit/metadata
ostree commit --repo=${REPO} --branch=runtime/${NAME}/${ARCH}/${VERSION} --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
rm -rf commit
mkdir -p commit
tar xf ${TAR_VAR} -C commit
ostree commit --repo=${REPO} --branch=runtime/${NAME}.Var/${ARCH}/${VERSION} --owner-uid=0 --owner-gid=0 --disable-fsync --no-xattrs -s "release" commit
if [ ${REPO} == "release/repo" ]; then
ostree static-delta generate --repo=${REPO} --min-fallback-size 1 --empty runtime/${NAME}/x86_64/3.16
ostree static-delta generate --repo=${REPO} --min-fallback-size 1 --empty runtime/${NAME}.Var/x86_64/3.16
fi
ostree summary -u --repo=${REPO}
[Runtime]
runtime=org.gnome.Platform/x86_64/3.16
sdk=org.gnome.Sdk/x86_64/3.16
[Extension org.gnome.Platform.GL]
directory=lib/GL
[Extension org.gnome.Platform.Timezones]
directory=share/zoneinfo
[Extension org.gnome.Platform.Locale]
directory=share/gnome-sdk/locale
subdirectories=true
[Runtime]
runtime=org.gnome.Platform/x86_64/3.16
sdk=org.gnome.Sdk/x86_64/3.16
[Extension org.gnome.Sdk.GL]
directory=lib/GL
[Extension org.gnome.Platform.Timezones]
directory=share/zoneinfo
[Extension org.gnome.Sdk.Locale]
directory=share/gnome-sdk/locale
subdirectories=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment