Commit 0ced358d authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Add autobuild files

parent 1fb1cd46
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
llbase = "*"
certifi = "*"
autobuild = {hg = "https://bitbucket.org/alchemyviewer/autobuild-1.1"}
[requires]
python_version = "2.7"
<?xml version="1.0" ?>
<llsd>
<map>
<key>package_description</key>
<map>
<key>canonical_repo</key>
<string>https://git.alchemyviewer.org/alchemy/thirdparty/3p-fmtlib-src</string>
<key>copyright</key>
<string>Copyright (c) 2012 - present, Victor Zverovich</string>
<key>description</key>
<string>A modern formatting library</string>
<key>license</key>
<string>MIT</string>
<key>license_file</key>
<string>LICENSES/fmtlib.txt</string>
<key>name</key>
<string>fmtlib-src</string>
<key>platforms</key>
<map>
<key>common</key>
<map>
<key>build_directory</key>
<string>stage</string>
<key>configurations</key>
<map>
<key>Release</key>
<map>
<key>build</key>
<map>
<key>arguments</key>
<array>
<string>-c</string>
<string>../build-cmd.sh</string>
</array>
<key>command</key>
<string>bash</string>
</map>
<key>default</key>
<boolean>true</boolean>
<key>name</key>
<string>Release</string>
</map>
</map>
<key>manifest</key>
<array>
<string>LICENSES/fmtlib.txt</string>
<string>fmt/*</string>
</array>
<key>name</key>
<string>common</string>
</map>
</map>
<key>source_directory</key>
<string>fmt</string>
<key>version_file</key>
<string>VERSION.txt</string>
</map>
<key>type</key>
<string>autobuild</string>
<key>version</key>
<string>1.3</string>
</map>
</llsd>
#!/usr/bin/env bash
cd "$(dirname "$0")"
# turn on verbose debugging output for parabuild logs.
exec 4>&1; export BASH_XTRACEFD=4; set -x
# make errors fatal
set -e
# complain about unset env variables
set -u
if [ -z "$AUTOBUILD" ] ; then
exit 1
fi
if [ "$OSTYPE" = "cygwin" ] ; then
autobuild="$(cygpath -u $AUTOBUILD)"
else
autobuild="$AUTOBUILD"
fi
top="$(pwd)"
stage="$(pwd)/stage"
mkdir -p $stage
# Load autobuild provided shell functions and variables
source_environment_tempfile="$stage/source_environment.sh"
"$autobuild" source_environment > "$source_environment_tempfile"
. "$source_environment_tempfile"
FMT_VERSION="6.0.0"
FMT_SOURCE_DIR="fmt"
build=${AUTOBUILD_BUILD_ID:=0}
echo "${FMT_VERSION}.${build}" > "${stage}/VERSION.txt"
# Create the staging folders
mkdir -p "$stage/fmt"
pushd "$FMT_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
# ------------------------ windows, windows64 ------------------------
common*)
cp -a * "$stage/fmt/"
;;
esac
mkdir -p "$stage/LICENSES"
cp LICENSE.rst "$stage/LICENSES/fmtlib.txt"
popd
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