1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=echoprint-codegen
|
---|
4 | version=-release-4.12
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXT_ECHOPRINT ../.. $*
|
---|
9 |
|
---|
10 | prefix=$GEXTECHOPRINT_INSTALLED
|
---|
11 |
|
---|
12 |
|
---|
13 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
14 |
|
---|
15 | #opt_run_configure $force_config $auto_config $package $version $prefix
|
---|
16 |
|
---|
17 | store_version=$version
|
---|
18 | version=$version/src
|
---|
19 |
|
---|
20 | if [ $compile = "1" ] ; then
|
---|
21 |
|
---|
22 | # The following code was commited in SVN, but there doesn't appear to be
|
---|
23 | # a Makefile.static file in the untarred file. The provided Makefile
|
---|
24 | # compiled OK with Cygwin, so commenting out for now. If problems
|
---|
25 | # are encountered further down the line, then this code might become
|
---|
26 | # useful again
|
---|
27 |
|
---|
28 | # if [ ! -f "$package$version/Makefile.dynamic" ] ; then
|
---|
29 | # echo "Replacing default Makefile with one that explicitly compiles dynamically"
|
---|
30 | # /bin/mv "$package$version/Makefile" "$package$version/Makefile.dynamic"
|
---|
31 | # /bin/cp Makefile.static "$package$version/Makefile"
|
---|
32 | # fi
|
---|
33 |
|
---|
34 | fi
|
---|
35 |
|
---|
36 | opt_run_make $compile $package $version
|
---|
37 |
|
---|
38 | #opt_run_make $install $package $version "install"
|
---|
39 | if [ $install = "1" ] ; then
|
---|
40 | echo "***"
|
---|
41 | echo "* Installing echprint-codegen to $GEXTECHOPRINT_INSTALLED/bin"
|
---|
42 | echo "***"
|
---|
43 | cd $package$store_version;
|
---|
44 | /bin/cp echoprint-codegen $GEXTECHOPRINT_INSTALLED/bin
|
---|
45 | chmod a+x $GEXTECHOPRINT_INSTALLED/bin/echoprint-codegen
|
---|
46 | cd ..;
|
---|
47 | fi
|
---|
48 |
|
---|
49 | opt_run_make $clean $package $version "clean"
|
---|
50 |
|
---|
51 |
|
---|
52 | #opt_run_make $distclean $package $version "distclean"
|
---|
53 |
|
---|
54 | version=$store_version
|
---|
55 | opt_run_tarclean $tarclean $package $version
|
---|
56 |
|
---|