annotate R/rdyncall/tools/bootstrap @ 15:1673ab696715

- erlang binding ToDo update in readme
author cslag
date Sat, 26 Mar 2016 16:09:41 +0100
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 download_zip()
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 {
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 VERSION=0.6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 NAME=dyncall-${VERSION}
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 ZIP=${NAME}.zip
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 wget http://dyncall.org/r${VERSION}/${ZIP}
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 unzip ${ZIP}
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 mv ${NAME} src/dyncall
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 rm ${ZIP}
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 }
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 checkout_src()
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 {
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 svn co https://dyncall.org/svn/dyncall/trunk/dyncall src/dyncall
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 svnversion src/dyncall >src/dyncall/SVNVERSION
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 }
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 configure_dyncall()
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 {
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 cat <<EOF >src/dyncall/ConfigVars
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 #auto-generated by dyncall/configure
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 CONFIG_PACKAGE=dyncall
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 CONFIG_ARCH=universal
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 CONFIG_TOOL=gcc
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 CONFIG_ASM=gcc
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 CONFIG_CONFIG=release
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 CONFIG_BUILDPREFIX=.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 EOF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 }
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 # choose between 'checkout_src' or 'download_zip'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 checkout_src
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 # download_zip
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 # configure_dyncall
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36