#!/bin/bash
#
# Copyright (C) 2012-2015 Codethink Limited
#
# 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
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see .
set -e
source "$SRCDIR/scripts/fix-committer-info"
# Create a repository
repo="$DATADIR/test-repo"
mkdir "$repo"
cd "$repo"
git init --quiet
echo 'version: 6' > VERSION
git add VERSION
git commit --quiet -m "add VERSION file"
# Define a stratum for the GTK stack
cat < gtk-stack.morph
name: gtk-stack
kind: stratum
build-depends: []
chunks:
- name: freetype
repo: test:test-repo
ref: master
build-mode: bootstrap
build-system: manual
- name: fontconfig
repo: test:test-repo
ref: master
build-mode: bootstrap
build-system: manual
- name: cairo
repo: test:test-repo
ref: master
build-mode: bootstrap
build-system: manual
- name: pango
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- freetype
- fontconfig
- name: glib
repo: test:test-repo
ref: master
build-mode: bootstrap
build-system: manual
- name: gdk-pixbuf
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- glib
- name: gtk
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- cairo
- gdk-pixbuf
- glib
- pango
- name: dbus
repo: test:test-repo
ref: master
build-mode: bootstrap
build-system: manual
- name: dbus-glib
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- dbus
- glib
EOF
git add gtk-stack.morph
git commit --quiet -m "add gtk-stack.morph stratum"
# Define a stratum for the Xfce core
cat < xfce-core.morph
name: xfce-core
kind: stratum
build-depends:
- morph: gtk-stack
chunks:
- name: libxfce4util
repo: test:test-repo
ref: master
build-system: manual
- name: xfconf
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4util
- name: libxfce4ui
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- xfconf
- name: exo
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4util
- name: garcon
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4util
- name: thunar
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- exo
- name: tumbler
repo: test:test-repo
ref: master
build-system: manual
- name: xfce4-panel
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- exo
- garcon
- name: xfce4-settings
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- exo
- xfconf
- name: xfce4-session
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- exo
- xfconf
- name: xfwm4
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- xfconf
- name: xfdesktop
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- xfconf
- name: xfce4-appfinder
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- garcon
- xfconf
- name: gtk-xfce-engine
repo: test:test-repo
ref: master
build-system: manual
build-depends:
- libxfce4ui
- garcon
- xfconf
EOF
git add xfce-core.morph
git commit --quiet -m "add xfce-core.morph stratum"
cat < xfce-system.morph
name: xfce-system
kind: system
arch: $("$SRCDIR/scripts/test-morph" print-architecture)
strata:
- morph: xfce-core
EOF
git add xfce-system.morph
git commit --quiet -m "add xfce-system"