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

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

No longer have 'installed' at the top-level

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