git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Initial work on Mac build and install scripts #468
commita873a5681c45e1762fb32198786cc05e09f63768 authorPhil Freeman <paf31@cantab.net> dateTue 21 Oct 2014, 14:54 (12 years ago) parent3634a8d
2 files changed+82
macinstall/build.sh+27 macinstall/install.sh+55
macinstall/build.shnew file+27
@@ -0,0 +1,27 @@
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/
macinstall/install.shnew file+55
@@ -0,0 +1,55 @@
1+set -e
2+
3+clear
4+
5+echo " ____ ____ _ _ "
6+echo "| _ \ _ _ _ __ ___/ ___| ___ _ __(_)_ __ | |_ "
7+echo "| |_) | | | | '__/ _ \___ \ / __| '__| | '_ \| __|"
8+echo "| __/| |_| | | | __/___) | (__| | | | |_) | |_ "
9+echo "|_| \__,_|_| \___|____/ \___|_| |_| .__/ \__|"
10+echo " |_| "
11+echo
12+echo "This script will "
13+echo
14+echo " - Copy binary files to /usr/local/purescript/bin/"
15+echo " - Copy source code to ~/.purescript/prelude/"
16+echo
17+echo "PureScript is distributed under the MIT license:"
18+echo
19+echo "Permission is hereby granted, free of charge, to any person obtaining a copy of"
20+echo "this software and associated documentation files (the 'Software'), to deal in"
21+echo "the Software without restriction, including without limitation the rights to"
22+echo "use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of"
23+echo "the Software, and to permit persons to whom the Software is furnished to do so,"
24+echo "subject to the following conditions:"
25+echo
26+echo "The above copyright notice and this permission notice shall be included in all"
27+echo "copies or substantial portions of the Software."
28+echo
29+echo "THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR"
30+echo "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS"
31+echo "FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR"
32+echo "COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER"
33+echo "IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN"
34+echo "CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
35+echo
36+echo "Press any key to continue or ^C to exit."
37+echo
38+
39+read
40+
41+echo "Copying binary files to /usr/local/purescript/bin/ ..."
42+
43+mkdir -p /usr/local/purescript/bin/
44+cp psc psci psc-make docgen /usr/local/purescript/bin/
45+
46+echo "Copying source code to ~/.purescript/prelude/ ..."
47+
48+mkdir -p ~/.purescript/prelude
49+cp prelude.purs ~/.purescript/prelude/
50+
51+echo "You can add the PureScript binaries to your PATH variable as follows:"
52+echo
53+echo " echo \"export PATH=/usr/local/purescript/bin/:\\\$PATH\" >> ~/.bash_profile"
54+echo " source ~/.bash_profile"
55+