git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Modify bundle script to work on Linux
commitfa6bc5f942ef261064e763bb4d37c7a12f08cfe7 authorPhil Freeman <paf31@cantab.net> dateThu 23 Oct 2014, 11:48 (12 years ago) parenta873a56
4 files changed+39−27
bundle/.gitignore+2 bundle/build.sh+37 macinstall/install.sh → bundle/install.sh macinstall/build.sh−27
bundle/.gitignorenew file+2
@@ -0,0 +1,2 @@
1+*.tar.gz
2+*.sha
bundle/build.shnew file+37
@@ -0,0 +1,37 @@
1+set -e
2+
3+SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
4+
5+OS=$( uname )
6+
7+pushd ${SCRIPTPATH} > /dev/null
8+
9+# Make the staging directory
10+mkdir -p build/purescript/
11+
12+# Strip the binaries
13+strip ../dist/build/psc/psc
14+strip ../dist/build/psci/psci
15+strip ../dist/build/psc-make/psc-make
16+strip ../dist/build/docgen/docgen
17+
18+# Copy files to staging directory
19+cp ../dist/build/psc/psc build/purescript/
20+cp ../dist/build/psci/psci build/purescript/
21+cp ../dist/build/psc-make/psc-make build/purescript/
22+cp ../dist/build/docgen/docgen build/purescript/
23+cp ../prelude/prelude.purs build/purescript/
24+cp install.sh build/purescript/
25+
26+# Make the binary bundle
27+pushd build > /dev/null
28+tar -zcvf ../$OS.tar.gz purescript
29+popd > /dev/null
30+
31+# Calculate the SHA hash
32+shasum $OS.tar.gz > $OS.sha
33+
34+# Remove the staging directory
35+rm -rf build/
36+
37+popd > /dev/null
macinstall/install.sh → bundle/install.shrenamed

The content is the same.

macinstall/build.shdeleted−27
@@ -1,27 +0,0 @@
1−mkdir -p /tmp/build/purescript/
2−
3−strip ../dist/build/psc/psc
4−strip ../dist/build/psci/psci
5−strip ../dist/build/psc-make/psc-make
6−strip ../dist/build/docgen/docgen
7−
8−cp ../dist/build/psc/psc /tmp/build/purescript/
9−cp ../dist/build/psci/psci /tmp/build/purescript/
10−cp ../dist/build/psc-make/psc-make /tmp/build/purescript/
11−cp ../dist/build/docgen/docgen /tmp/build/purescript/
12−
13−cp ../prelude/prelude.purs /tmp/build/purescript/
14−
15−cp install.sh /tmp/build/purescript/
16−
17−pushd /tmp/build
18−
19−tar -zcvf latest.tar.gz purescript
20−
21−popd
22−
23−cp /tmp/build/latest.tar.gz .
24−
25−shasum latest.tar.gz > latest.sha
26−
27−rm -rf /tmp/build/