#!/bin/sh
# Copyright 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me>
# 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; either version 3 of the License, or
# (at your option) any later version.
#
# assemble VARIANT DEST: the demo library with the debian/ files of VARIANT.
set -eu
here=$(dirname "$0")
[ -d "$here/variants/$1" ] || { echo "assemble: no variant $1" >&2; exit 2; }
mkdir -p "$2"
cp -a "$here/demo/." "$2/"
cp -a "$here/variants/$1/." "$2/debian/"
