Skip to content

Commit 2d99859

Browse files
committed
add uplc-ghc wrapper script to plinth bindist
1 parent c723ad4 commit 2d99859

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plinth-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ DEST_UPLC_GHC="$BASE/_build/stage1/bin/uplc-ghc${EXE_EXT}"
253253
( cd "$dir/bin" && ln -sf "uplc-ghc-$VERSION" "uplc-ghc" )
254254
fi
255255

256+
# Add wrapper scripts so `make install` creates $PREFIX/bin/uplc-ghc
257+
echo 'exec "$executablename" -B"$libdir" ${1+"$@"}' > "$dir/wrappers/uplc-ghc-$VERSION"
258+
( cd "$dir/wrappers" && ln -sf "uplc-ghc-$VERSION" "uplc-ghc" )
259+
256260
# remove the boot GHC from the bindist
257261
rm -f "$dir"/bin/ghc
258262
rm -f "$dir"/bin/ghc.exe

0 commit comments

Comments
 (0)