1## This script can be run on any supported OS to create a binary .tar.gz
3## For Windows, msysgit contains all of the pieces needed to run this script.
10 echo "Usage: build.sh osname"
14pushd $(stack path --project-root)
16LOCAL_INSTALL_ROOT=$(stack path --local-install-root)
25# Make the staging directory
26mkdir -p bundle/build/purescript
28# Strip the binaries, and copy them to the staging directory
29for BIN in psc psci psc-docs psc-publish psc-bundle psc-ide-server psc-ide-client
31 FULL_BIN="$LOCAL_INSTALL_ROOT/bin/${BIN}${BIN_EXT}"
32 strip "$FULL_BIN" || true # not the end of the world if this fails, and
33 # AppVeyor can't seem to handle it for some reason
34 cp "$FULL_BIN" bundle/build/purescript
37# Copy extra files to the staging directory
38cp bundle/README bundle/build/purescript/
39cp LICENSE bundle/build/purescript/
40cp INSTALL.md bundle/build/purescript/
42stack list-dependencies >bundle/build/purescript/dependencies.txt
44# Make the binary bundle
45pushd bundle/build > /dev/null
46tar -zcvf ../${OS}.tar.gz purescript
49# Calculate the SHA hash
52 # msys/mingw does not include shasum. :(
53 SHASUM="openssl dgst -sha1"
58$SHASUM bundle/${OS}.tar.gz > bundle/${OS}.sha
60# Remove the staging directory
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list