blob: 6e9ea455247f8dea1e355c0fdd4ed9e5a51f0627 [file] [log] [blame]
#!/bin/sh
#
# DO NOT EDIT THIS FILE
#
# This is a build script generated by
# [BuildStream](https://wiki.gnome.org/Projects/BuildStream/).
#
# Builds the module {name}.
set -e
# Prepare the build environment
echo 'Building {name}'
if [ -d '{build_root}' ]; then
rm -rf '{build_root}'
fi
if [ -d '{install_root}' ]; then
rm -rf '{install_root}'
fi
mkdir -p '{build_root}'
mkdir -p '{install_root}'
if [ -d "$SRCDIR/{name}/" ]; then
cp -a "$SRCDIR/{name}/." '{build_root}'
fi
cd '{build_root}'
export PREFIX='{install_root}'
export {variables}
# Build the module
{commands}
rm -rf '{build_root}'
# Install the module
echo 'Installing {name}'
(cd '{install_root}'; find . | cpio -umdp /)