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