From e213d1b2b45415c3faff4bb4fdae874bdfcac16d Mon Sep 17 00:00:00 2001 From: Nicholas DeMarinis Date: Fri, 29 Sep 2023 09:40:53 -0400 Subject: Added stencil update script. --- util/update_from_stencil | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 util/update_from_stencil diff --git a/util/update_from_stencil b/util/update_from_stencil new file mode 100755 index 0000000..c0048ea --- /dev/null +++ b/util/update_from_stencil @@ -0,0 +1,19 @@ +#!/bin/bash + +set -euo pipefail + +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +REPO_DIR=$(realpath "${SCRIPT_DIR}"/..) + +STENCIL_REPO=http://github.com/brown-csci1680/ipstack-template + +main() { + git remote rm stencil || true + git remote add stencil "$STENCIL_REPO" + + git config pull.rebase false + git pull stencil main --allow-unrelated-histories -s ort -Xtheirs --no-edit +} + + +main $@ -- cgit v1.2.3-70-g09d2