Skip to content

Commit

Permalink
fix(agd): make agd-builder.sh only build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 10, 2024
1 parent 233180d commit c0ce234
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 9 additions & 2 deletions bin/agd
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#! /bin/bash
# bin/agd - execute ../scripts/agd-builder.sh
# bin/agd - execute ../scripts/agd-builder.sh then run the built `agd`
real0=$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")
thisdir=$(cd "$(dirname -- "$real0")" > /dev/null && pwd -P)
exec "$thisdir/../scripts/agd-builder.sh" ${1+"$@"}

# shellcheck disable=SC1091
source "$thisdir/../scripts/agd-builder.sh" ${1+"$@"}

# Run the built Cosmos daemon.
# shellcheck disable=SC2031
export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH"
exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"}
7 changes: 1 addition & 6 deletions scripts/agd-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,4 @@ xsnap_version=$("${thisdir}/../packages/xsnap/xsnap-native/xsnap/build/bin/${pla
if $only_build; then
echo "Build complete." 1>&2
exit 0
fi

# Run the built Cosmos daemon.
# shellcheck disable=SC2031
export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH"
exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"}
fi

0 comments on commit c0ce234

Please sign in to comment.