source: gs2-extensions/video/trunk/build-srcpack/packages/CASCADE-MAKE/FLVTOOL2.sh@ 22433

Last change on this file since 22433 was 22433, checked in by davidb, 14 years ago

Needed to roll back version of Ruby to a 1.8.x. This is because flvtool2 (in setup.rb) does not yet use the new way strings are implemented in the ruby 19.x series

File size: 1.9 KB
Line 
1#!/bin/bash
2
3package=flvtool2
4version=-1.0.6
5
6progname=$0
7
8source ../../cascade-make/lib/cascade-lib.bash
9
10prefix=$GEXTVIDEO_INSTALLED
11
12
13opt_run_untar $force_untar $auto_untar $package $version ".tgz"
14
15
16
17if [ -d $package$version ] ; then
18 echo "****"
19 echo "* Always (for now) have it run configure stage for ruby"
20 echo "****"
21
22
23 ( echo "[pushd $package$version]"a ; \
24 cd $package$version ; \
25 ruby setup.rb config --prefix=$prefix )
26
27 if [ $? != 0 ] ; then
28 echo " Error encountered running *config* stage of $progname"
29 exit 1
30 fi
31 echo "[popd]"
32fi
33
34
35if [ $compile = "1" ] ; then
36 ( echo "[pushd $package$version]" ; \
37 cd $package$version ; \
38 ruby setup.rb setup )
39
40 if [ $? != 0 ] ; then
41 echo " Error encountered running *setup/compile* stage of $progname"
42 exit 1
43 fi
44 echo "[popd]"
45
46fi
47
48
49if [ $install = "1" ] ; then
50 ( echo "[pushd $package$version]" ; \
51 cd $package$version ; \
52 ruby setup.rb install )
53
54 if [ $? != 0 ] ; then
55 echo " Error encountered running *install* stage of $progname"
56 exit 1
57 fi
58 echo "[popd]"
59fi
60
61# What are the equivalent calls for clean and distclean ???
62
63#opt_run_make $clean $package $version "clean"
64
65# Does this make any sense?
66if [ $clean = "XXX" ] ; then
67 ( echo "[pushd $package$version]" ; \
68 cd $package$version ; \
69 ruby setup.rb clean )
70
71 if [ $? != 0 ] ; then
72 echo " Error encountered running *install* stage of $progname"
73 exit 1
74 fi
75 echo "[popd]"
76fi
77
78
79#opt_run_make $distclean $package $version "distclean"
80
81# Does this make any sense???
82
83if [ $distclean = "XXX" ] ; then
84 ( echo "[pushd $package$version]" ; \
85 cd $package$version ; \
86 ruby setup.rb distclean )
87
88 if [ $? != 0 ] ; then
89 echo " Error encountered running *install* stage of $progname"
90 exit 1
91 fi
92 echo "[popd]"
93fi
94
95opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.