Skip to content

Commit

Permalink
Wyrm build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jan 20, 2024
1 parent e9a5248 commit 6caf3c6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions misc/build-wyrm-transpiler.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

set -ex
source common.sh

VERSION=$1
if [[ "${VERSION}" = "trunk" ]]; then
VERSION=trunk-$(date +%Y%m%d)
BRANCH=master
else
BRANCH=V${VERSION}
fi

URL=https://github.com/jeremy-rifkin/wyrm.git

FULLNAME=wyrm-${VERSION}.tar.xz
OUTPUT=$2/${FULLNAME}

REVISION="wyrm-$(get_remote_revision "${URL}" "heads/${BRANCH}")"
LAST_REVISION="${3:-}"

initialise "${REVISION}" "${OUTPUT}" "${LAST_REVISION}"

PREFIX=$(pwd)/prefix
DIR=$(pwd)/wyrm

git clone "${URL}" "${DIR}"

cd "${DIR}"

mkdir build
cd build
CXX=/opt/compiler-explorer/gcc-12.1.0/bin/g++
CC=/opt/compiler-explorer/gcc-12.1.0/bin/gcc
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug
ninja

mkdir -p "${PREFIX}"
cd ..
mv build "${PREFIX}/build"

complete "${PREFIX}" "wyrm-${VERSION}" "${OUTPUT}"

0 comments on commit 6caf3c6

Please sign in to comment.