mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
* Verify all examples and docs work correctly * Exclude contrib k8s and systemd which will be updated and verified in a followup commit
37 lines
680 B
Bash
Executable File
37 lines
680 B
Bash
Executable File
#!/bin/bash -e
|
|
# USAGE: ./release-files DEST
|
|
|
|
DEST=$1
|
|
|
|
if [ -z "${DEST}" ]; then
|
|
echo "Usage: ${0} DEST"
|
|
exit 255
|
|
fi
|
|
|
|
SCRIPTS=$DEST/scripts
|
|
CONTRIB=$DEST/contrib
|
|
|
|
cp CHANGES.md $DEST
|
|
cp LICENSE $DEST
|
|
cp README.md $DEST
|
|
|
|
# scripts
|
|
mkdir -p $SCRIPTS/tls
|
|
cp scripts/get-coreos $SCRIPTS
|
|
cp examples/etc/matchbox/README.md $SCRIPTS/tls
|
|
cp examples/etc/matchbox/cert-gen $SCRIPTS/tls
|
|
cp examples/etc/matchbox/openssl.conf $SCRIPTS/tls
|
|
|
|
# systemd
|
|
mkdir -p $CONTRIB/systemd
|
|
cp -r contrib/systemd/* $CONTRIB/systemd
|
|
|
|
# examples
|
|
mkdir -p $DEST/examples
|
|
cp -r examples/{cloud,groups,ignition,profiles,README.md} $DEST/examples
|
|
|
|
# docs
|
|
mkdir -p $DEST/docs
|
|
cp -r Documentation $DEST/docs
|
|
|