source: titan/titan/makearm.4.3.sh @ 43480

Last change on this file since 43480 was 43018, checked in by obi, 9 months ago

add hiaccel support

  • Property svn:executable set to *
File size: 36.4 KB
Line 
1TYPE=$1
2STM=$2
3MEDIAFW=$3
4SVNUSER=$4
5SVNPASS=$5
6SVNURL=$6
7KERNELDIR=$7
8ROOTDIR=$8
9IPKDIR=$9
10VERSION=${10}
11BUILDTYPE=${11}
12BOX=${12}
13GROUP=${13}
14DISTRO=${14}
15ARCH=${15}
16#if [ "$GROUP" = "dev" ];then
17        SRC="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/builds/"$DISTRO"/release/"$BOX"
18#else
19#       SRC="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/builds/"$DISTRO"/"$BOX"
20#fi
21SRCDIR=${16}
22CPU=${17}
23BOXNAME=${18}
24TYPE1=${19}
25
26DREAM="NOTDREAM"
27if [ "$BOX" == "dm900" ] || [ "$BOX" == "dm920" ] || [ "$BOX" == "dm520" ] || [ "$BOX" == "dm525" ];then
28        DREAM="DREAMBOX"
29fi
30
31CONFION="NOTION"
32if [ "$BOX" == "dm900" ] || [ "$BOX" == "dm920" ];then
33        CONFION="CONFIG_ION"
34fi
35
36#echo $*
37if [ -e "$HOME"/flashimg/.ipk-build-error ]; then
38        rm "$HOME"/flashimg/.ipk-build-error
39        exit
40fi
41
42if [ -z "$TYPE" ]; then
43    echo "error: use ./makearm.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
44    touch "$HOME"/flashimg/.ipk-build-error
45    exit 1
46fi
47
48if [ -z "$STM" ]; then
49    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
50    touch "$HOME"/flashimg/.ipk-build-error
51    exit 1
52fi
53
54if [ -z "$MEDIAFW" ]; then
55    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
56    touch "$HOME"/flashimg/.ipk-build-error
57    exit 1
58fi
59
60if [ -z "$SVNUSER" ]; then
61    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
62    touch "$HOME"/flashimg/.ipk-build-error
63    exit 1
64fi
65
66if [ -z "$SVNPASS" ]; then
67    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
68    touch "$HOME"/flashimg/.ipk-build-error
69    exit 1
70fi
71
72if [ -z "$SVNURL" ]; then
73    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
74    touch "$HOME"/flashimg/.ipk-build-error
75    exit 1
76fi
77
78if [ -z "$KERNELDIR" ]; then
79    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
80    touch "$HOME"/flashimg/.ipk-build-error
81    exit 1
82fi
83
84if [ -z "$ROOTDIR" ]; then
85    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
86    touch "$HOME"/flashimg/.ipk-build-error
87    exit 1
88fi
89
90if [ -z "$IPKDIR" ]; then
91    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
92    touch "$HOME"/flashimg/.ipk-build-error
93    exit 1
94fi
95
96if [ -z "$VERSION" ]; then
97    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
98    touch "$HOME"/flashimg/.ipk-build-error
99    exit 1
100fi
101
102if [ -z "$BUILDTYPE" ]; then
103    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
104    echo BUILDTYPE 0 = build all
105    echo BUILDTYPE 1 = build libdreamdvd and titan
106    echo BUILDTYPE 2 = build titan only
107    touch "$HOME"/flashimg/.ipk-build-error
108    exit 1
109fi
110
111
112if [ $# -lt 10 ]; then
113    echo "error: use ./makesh4.sh <BOXTYPE> <stm22|stm23|stm24> <1|2> <svnuser> <svnpass> <svnurl> <kerneldir> <rootdir> <ipkdir> <version> <buildtype>"
114    echo BUILDTYPE 0 = build all
115    echo BUILDTYPE 1 = build libdreamdvd and titan
116    echo BUILDTYPE 2 = build titan only
117    touch "$HOME"/flashimg/.ipk-build-error
118    exit 1
119fi
120
121echo "[titan]--------------------------------------------------------"
122echo "[titan] get skin"
123echo "[titan]--------------------------------------------------------"
124
125rm -rf "$HOME"/flashimg/$SRCDIR/skin
126mkdir "$HOME"/flashimg/$SRCDIR/skin
127
128# atemio6200 ??
129#if [ "$TYPE" = "atemio5200" ];then
130#       CREATE=0
131#    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_defnominitv/_path_/usr/local/share/titan/skin/defnominitv "$HOME"/flashimg/$SRCDIR/skin/default
132#else
133        CREATE=1
134    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_default/_path_/usr/local/share/titan/skin/default "$HOME"/flashimg/$SRCDIR/skin/default
135        if [ "$TYPE" = "atemio5200" ];then
136                cp -a "$HOME"/flashimg/$SRCDIR/skin/default/skinconfig "$HOME"/flashimg/$SRCDIR/skin/default/skinconfig.minitv
137                mv -f "$HOME"/flashimg/$SRCDIR/skin/default/skinconfig.nominitv "$HOME"/flashimg/$SRCDIR/skin/default/skinconfig
138        fi
139#fi
140
141
142echo "[titan]--------------------------------------------------------"
143echo "[titan] get skin done"
144echo "[titan]--------------------------------------------------------"
145
146echo "[titan]--------------------------------------------------------"
147echo "[titan] get settings"
148echo "[titan]--------------------------------------------------------"
149rm -rf "$HOME"/flashimg/$SRCDIR/settings.svn
150if [ "$TYPE" = "ufs910" ] || [ "$TYPE" = "ufs922" ];then
151    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
152else
153    svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
154fi
155sort -u "$HOME"/flashimg/$SRCDIR/settings.svn/channel > "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort
156mv -f "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort "$HOME"/flashimg/$SRCDIR/settings.svn/channel
157sed s/"^ *"// -i "$HOME"/flashimg/$SRCDIR/settings.svn/channel
158
159echo "[titan]--------------------------------------------------------"
160echo "[titan] get settings done"
161echo "[titan]--------------------------------------------------------"
162
163cp -a "$HOME"/flashimg/$SRCDIR/skins/[^.]* "$HOME"/flashimg/$SRCDIR/plugins
164
165echo "[titan]--------------------------------------------------------"
166echo "[titan] cleanup"
167echo "[titan]--------------------------------------------------------"
168
169cd "$HOME"/flashimg/$SRCDIR/titan
170rm -rf titan
171rm -rf titan.o
172#rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.o"`
173#rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.so"`
174
175echo "[titan]--------------------------------------------------------"
176echo "[titan] cleanup done"
177echo "[titan]--------------------------------------------------------"
178
179#echo "[titan]--------------------------------------------------------"
180#echo "[titan] Make Securety"
181#echo "[titan]--------------------------------------------------------"
182
183"$HOME"/flashimg/$SRCDIR/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE $SRCDIR $CPU $STM $BOXNAME
184
185#echo "[titan]--------------------------------------------------------"
186#echo "[titan] Security done"
187#echo "[titan]--------------------------------------------------------"
188
189echo "[titan]--------------------------------------------------------"
190echo "[titan] Make Tpkdir"
191echo "[titan]--------------------------------------------------------"
192
193"$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
194
195echo "[titan]--------------------------------------------------------"
196echo "[titan] Tpkdir done"
197echo "[titan]--------------------------------------------------------"
198
199echo "[titan]--------------------------------------------------------"
200echo "[titan] update git cdkroot"
201echo "[titan]--------------------------------------------------------"
202
203echo "[titan]--------------------------------------------------------"
204echo "[titan] Make titan"
205echo "[titan]--------------------------------------------------------"
206
207
208eplayer=EPLAYER4
209eplayerlib=gstreamer-1.0
210eplayerinclude="$SRC/tmp/sysroots/$BOX/usr/include/$eplayerlib
211        -I$SRC/tmp/sysroots/$BOX/usr/lib/$eplayerlib/include
212        -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0
213        -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2
214-I"$HOME"/flashimg/source.titan/titan/include
215        -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include"
216
217EXTEPLAYER3=1
218
219if [ "$GROUP" = "dev" ]; then
220#    devflag="-finstrument-functions -rdynamic -DBETA"
221    devflag="-DBETA -DEXTEPLAYER3 -DUSE_LIBHIACCEL -DHAVE_HISILICON_ACCEL"
222        eplayer=EPLAYER3
223        eplayerlib=eplayer3
224        eplayerinclude="$HOME/flashimg/source.titan/libeplayer3/include
225                        -I$HOME/flashimg/source.titan/titan/include"
226else
227        if [ "$EXTEPLAYER3" = "1" ];then
228            devflag="-DEXTEPLAYER3"
229                eplayer=EPLAYER3
230                eplayerlib=eplayer3
231                eplayerinclude="$HOME"/flashimg/source.titan/libeplayer3/include
232        else
233                eplayer=EPLAYER4
234                eplayerlib=gstreamer-1.0
235        devflag=""
236    fi
237fi
238
239#arm
240    ARCHPATH=oe-linux-gnueabi
241#mipsel
242    ARCHPATH=oe-linux
243
244    GCCPATH=$CPU-$ARCHPATH
245
246#if [ "$GROUP" = "dev" ] && [ "$TYPE" = "dm920" ]; then
247if [ "$TYPE" = "atemio-nemesis" ]; then
248#./arm-oe-linux-gnueabi-libtool  --tag=CC   --mode=link arm-oe-linux-gnueabi-gcc  -march=armv7ve -mfpu=neon-vfpv4  -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot -DARM -DDREAMBOX -DMIPSEL -DCAMSUPP -DEXTEPLAYER -Os -mhard-float -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -Os -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3=/usr/src/debug/titan-bin/2.0+svnr41791-r3 -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot-native= -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot=   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o titan titan-titan.o -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -ldreamdvd -ljpeg -lssl -lcrypto
249#arm-oe-linux-gnueabi-libtool: link: arm-oe-linux-gnueabi-gcc -march=armv7ve -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a15 --sysroot=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot -DARM -DDREAMBOX -DMIPSEL -DCAMSUPP -DEXTEPLAYER -Os -mhard-float -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -Os -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3=/usr/src/debug/titan-bin/2.0+svnr41791-r3 -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot-native= -fdebug-prefix-map=/home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41791-r3/recipe-sysroot= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o titan titan-titan.o -Wl,--export-dynamic  -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -ldreamdvd -ljpeg -lssl -lcrypto
250
251    mkdir .deps
252    echo make1
253
254        LIBEPLAYERROOT=$SRC/tmp/work/$BOX-$ARCHPATH/titan-libeplayer3/2.0+svnr$VERSION-r3/libeplayer3/.libs/
255        BUILDROOT=$SRC/tmp/work/$BOX-$ARCHPATH/titan-bin/2.0+svnr$VERSION-r3
256        SYSROOT=$BUILDROOT/recipe-sysroot
257        LIBTOOLPATH=$BUILDROOT/titan/titan/$GCCPATH
258        GCCPATH=$SYSROOT-native/usr/bin/$GCCPATH/$GCCPATH
259
260#       ARCHONLY=`echo $ARCH | sed 's/-linux//'`
261#       STRIP=$SRC/tmp/sysroots-components/$ARCHONLY/binutils-cross-arm/usr/bin/$GCCPATH/$GCCPATH-strip
262#       LIBTOOLPATH=$SRC/tmp/sysroots-components/cortexa15hf-neon-vfpv4/libtool-cross/usr/bin/crossscripts/$GCCPATH
263#       GCCPATH=$SRC/tmp/sysroots-components/$ARCHONLY/gcc-cross-arm/usr/bin/$GCCPATH/$GCCPATH
264
265    echo VERSION $VERSION
266    echo SRC $SRC
267    echo LIBEPLAYERROOT $LIBEPLAYERROOT
268    echo BUILDROOT $BUILDROOT
269    echo SYSROOT $SYSROOT
270    echo GCCPATH $GCCPATH
271    echo TEST LIBTOOLPATH $LIBTOOLPATH
272        echo FEST LIBTOOLPATH /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41802-r3/titan/titan/arm-oe-linux-gnueabi-libtool
273        echo NEU1 LIBTOOLPATH /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/sysroots-components/cortexa15hf-neon-vfpv4/libtool-cross/usr/bin/crossscripts/arm-oe-linux-gnueabi-libtool
274
275    echo TEST GCC $GCCPATH-gcc
276        echo FEST GCC /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/work/dm920-oe-linux-gnueabi/titan-bin/2.0+svnr41796-r3/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
277        echo NEU1 GCC /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/sysroots-components/x86_64/gcc-cross-arm/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc
278
279        echo TEST EPLAYER3 $SRC/tmp/sysroots-components/$BOX/titan-libeplayer3/usr/lib/libeplayer3.so.0.0.0
280        echo FEST EPLAYER3 /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/sysroots-components/dm920/titan-libeplayer3/usr/lib/libeplayer3.so.0.0.0
281
282#       echo TEST STRIP $STRIP-gcc
283#       echo FEST STRIP /home/atemio/flashimg/BUILDGIT/checkout_mips360/builds/titannit/release/dm920/tmp/sysroots-components/x86_64/binutils-cross-arm/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-strip
284
285        ls -al $SRC/tmp/sysroots-components/$BOX/titan-libeplayer3/usr/lib/libeplayer3*
286#       cp -a $SRC/tmp/sysroots-components/$BOX/titan-libeplayer3/usr/lib/libeplayer3* $SYSROOT/usr/lib/
287        cp -a $LIBEPLAYERROOT/* $SYSROOT/usr/lib/
288
289    $GCCPATH-gcc                                 -mhard-float --sysroot=$SYSROOT               -DPACKAGE_NAME=\"tuxbox-apps-titan\" -DPACKAGE_TARNAME=\"tuxbox-titan\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"tuxbox-apps-titan\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tuxbox-titan\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -DDVDPLAYER -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SYSROOT/usr/include               -I$eplayerinclude                                                                                     -I$SYSROOT/usr/include/glib-2.0               -I$SYSROOT/usr/include/libxml2               -I$SYSROOT/usr/lib/glib-2.0/include               -I$SYSROOT/usr/include/freetype2               -I$SYSROOT/usr/include/dreamdvd               -I$SYSROOT/usr/include/libdreamdvd               -I$SYSROOT/usr/include               -I"$HOME"/flashimg/source.titan/libdreamdvd -I$eplayerinclude -I"$HOME"/flashimg/source.titan/titan -MT titan-titan.o -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
290#   $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DPACKAGE_NAME=\"tuxbox-apps-titan\" -DPACKAGE_TARNAME=\"tuxbox-titan\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"tuxbox-apps-titan\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tuxbox-titan\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include -I$SRC/tmp/sysroots/$BOX/usr/include/$eplayerlib -I$SRC/tmp/sysroots/$BOX/usr/lib/$eplayerlib/include -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0 -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2 -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2 -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd -I$SRC/tmp/sysroots/$BOX/usr/include -I"$HOME"/flashimg/source.titan/libdreamdvd                   -I"$HOME"/flashimg/source.titan/titan -MT titan-titan.o -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
291
292    echo make2
293    $LIBTOOLPATH-libtool                                    --tag=CC --mode=link $GCCPATH-gcc                                          -mhard-float --sysroot=$SYSROOT               -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SYSROOT/usr/include               -I$eplayerinclude                                                                                     -I$SYSROOT/usr/include/glib-2.0               -I$SYSROOT/usr/include/libxml2               -I$SYSROOT/usr/lib/glib-2.0/include               -I$SYSROOT/usr/include/freetype2               -I$SYSROOT/usr/include/openssl               -I$SYSROOT/usr/include/dreamdvd               -I$SYSROOT/usr/include/libdreamdvd               -I"$HOME"/flashimg/source.titan/libdreamdvd -I"$HOME"/flashimg/source.titan/titan -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Wl,-O1  -Wl,--as-needed -o titan titan-titan.o -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -l$eplayerlib -ldreamdvd -ljpeg -lssl -lcrypto -lhiaccel
294#   $SRC/tmp/sysroots/$BOX/usr/bin/crossscripts/$GCCPATH-libtool --tag=CC --mode=link $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include -I$SRC/tmp/sysroots/$BOX/usr/include/$eplayerlib -I$SRC/tmp/sysroots/$BOX/usr/lib/$eplayerlib/include -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0 -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2 -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2 -I$SRC/tmp/sysroots/$BOX/usr/include/openssl -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd -I"$HOME"/flashimg/source.titan/libdreamdvd -I"$HOME"/flashimg/source.titan/titan -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Wl,-O1  -Wl,--as-needed -o titan titan-titan.o -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -l$eplayerlib -ldreamdvd -ljpeg -lssl -lcrypto
295
296    echo make3
297#   $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-strip titan
298    $GCCPATH-strip titan
299#    $STRIP-strip titan
300else
301        if [ "$EXTEPLAYER3" = "1" ];then
302            mkdir .deps
303            $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DPACKAGE_NAME=\"tuxbox-apps-titan\" -DPACKAGE_TARNAME=\"tuxbox-titan\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"tuxbox-apps-titan\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tuxbox-titan\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include                                                                                                                    -I$eplayerinclude     -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0   -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2    -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include   -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2  -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd   -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd    -I$SRC/tmp/sysroots/$BOX/usr/include -I"$HOME"/flashimg/source.titan/libdreamdvd     -I$eplayerinclude         -I"$HOME"/flashimg/source.titan/titan -MT titan-titan.o -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
304            $SRC/tmp/sysroots/$BOX/usr/bin/crossscripts/$GCCPATH-libtool  --tag=CC   --mode=link $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include                                                                                                                 -I$eplayerinclude     -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0   -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2    -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include   -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2  -I$SRC/tmp/sysroots/$BOX/usr/include/openssl  -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd   -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd    -I"$HOME"/flashimg/source.titan/libdreamdvd     -I"$HOME"/flashimg/source.titan/titan -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -D$eplayer -Wl,-O1  -Wl,--as-needed -o titan titan-titan.o -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -l$eplayerlib -ldreamdvd -ljpeg -lssl -lcrypto
305            $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-strip titan
306        else
307            mkdir .deps
308            $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DPACKAGE_NAME=\"tuxbox-apps-titan\" -DPACKAGE_TARNAME=\"tuxbox-titan\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"tuxbox-apps-titan\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tuxbox-titan\" -DVERSION=\"0.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.    -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include     -I$SRC/tmp/sysroots/$BOX/usr/include/$eplayerlib     -I$SRC/tmp/sysroots/$BOX/usr/lib/$eplayerlib/include     -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0   -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2    -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include   -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2  -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd   -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd    -I$SRC/tmp/sysroots/$BOX/usr/include -I"$HOME"/flashimg/source.titan/libdreamdvd     -I"$HOME"/flashimg/source.titan/titan -MT titan-titan.o -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
309            $SRC/tmp/sysroots/$BOX/usr/bin/crossscripts/$GCCPATH-libtool  --tag=CC   --mode=link $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-gcc -mhard-float --sysroot=$SRC/tmp/sysroots/$BOX -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Os -mhard-float $devflag -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration -I$SRC/tmp/sysroots/$BOX/usr/include   -I$SRC/tmp/sysroots/$BOX/usr/include/$eplayerlib     -I$SRC/tmp/sysroots/$BOX/usr/lib/$eplayerlib/include     -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0   -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2    -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include   -I$SRC/tmp/sysroots/$BOX/usr/include/freetype2  -I$SRC/tmp/sysroots/$BOX/usr/include/openssl  -I$SRC/tmp/sysroots/$BOX/usr/include/dreamdvd   -I$SRC/tmp/sysroots/$BOX/usr/include/libdreamdvd    -I"$HOME"/flashimg/source.titan/libdreamdvd     -I"$HOME"/flashimg/source.titan/titan -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -DEPLAYER4 -Wl,-O1  -Wl,--as-needed -o titan titan-titan.o -DDVDPLAYER -DARM -DMIPSEL -D$DREAM -D$CONFION -DCAMSUPP -lm -lglib-2.0 -lgobject-2.0 -lpthread -ldl -lz -lpng -lfreetype -l$eplayerlib -ldreamdvd -ljpeg -lssl -lcrypto
310            $SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/$GCCPATH-strip titan
311        fi
312fi
313    echo "[titan]--------------------------------------------------------"
314    echo "[titan] titan done"
315    echo "[titan]--------------------------------------------------------"
316
317    if [ "$SRCDIR" = "source.titan.building" ]; then exit 1; fi
318
319    rm -rf "$HOME"/flashimg/BUILD/titan
320    rm -rf "$HOME"/flashimg/BUILD/titan-smal
321
322    if [ ! -e ./titan ]; then
323        echo "[titan]--------------------------------------------------------"
324        echo "[titan] building error !!!"
325        echo "[titan] check your src"
326        echo "[titan]--------------------------------------------------------"
327        touch "$HOME"/flashimg/.ipk-build-error
328        exit 1
329    fi
330#fi
331
332if [ "$HOME" == "/home/aaf-svn" ];then
333    echo "[titan]--------------------------------------------------------"
334    echo "[titan] manuel build stop po building !!!"
335    echo "[titan]--------------------------------------------------------"
336    touch "$HOME"/flashimg/.ipk-build-error
337    exit 1
338fi
339
340echo "[titan]--------------------------------------------------------"
341echo "[titan] Make TPK Binary"
342echo "[titan]--------------------------------------------------------"
343
344rm -rf "$HOME"/flashimg/$SRCDIR/tpk/tpk
345"$HOME"/flashimg/$SRCDIR/tpk/make.sh $SRCDIR
346
347if [ ! -e "$HOME"/flashimg/$SRCDIR/tpk/tpk ]; then
348    echo "[titan]--------------------------------------------------------"
349    echo "[titan] building error !!!"
350    echo "[titan] check your src"
351    echo "[titan]--------------------------------------------------------"
352    touch "$HOME"/flashimg/.ipk-build-error
353    exit 1
354fi
355
356echo "[titan]--------------------------------------------------------"
357echo "[titan] TPK done"
358echo "[titan]--------------------------------------------------------"
359
360#if [ "$DISTRO" != "titannit" ];then
361
362    echo "[titan]--------------------------------------------------------"
363    echo "[titan] Make Plugins"
364    echo "[titan]--------------------------------------------------------"
365    "$HOME"/flashimg/$SRCDIR/plugins/makearm.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO" "$ARCH" "$SRCDIR"
366    echo "[titan]--------------------------------------------------------"
367    echo "[titan] Plugins done"
368    echo "[titan]--------------------------------------------------------"
369#fi
370
371echo "[titan]--------------------------------------------------------"
372echo "[titan] Update Language Po files"
373echo "[titan]--------------------------------------------------------"
374"$HOME"/flashimg/$SRCDIR/titan/tools/createpo.sh "$SVNUSER" "$GROUP" $SRCDIR $TYPE $CREATE
375echo "[titan]--------------------------------------------------------"
376echo "[titan] Update Language Po files done"
377echo "[titan]--------------------------------------------------------"
378
379echo "[titan]--------------------------------------------------------"
380echo "[titan] Make Language Po files"
381echo "[titan]--------------------------------------------------------"
382#"$HOME"/flashimg/$SRCDIR/po/de/LC_MESSAGES/make.sh "$STM"
383#"$HOME"/flashimg/$SRCDIR/po/fr/LC_MESSAGES/make.sh "$STM"
384#"$HOME"/flashimg/$SRCDIR/po/gr/LC_MESSAGES/make.sh "$STM"
385#"$HOME"/flashimg/$SRCDIR/po/it/LC_MESSAGES/make.sh "$STM"
386#"$HOME"/flashimg/$SRCDIR/po/nl/LC_MESSAGES/make.sh "$STM"
387#"$HOME"/flashimg/$SRCDIR/po/pl/LC_MESSAGES/make.sh "$STM"
388#"$HOME"/flashimg/$SRCDIR/po/ru/LC_MESSAGES/make.sh "$STM"
389#"$HOME"/flashimg/$SRCDIR/po/vn/LC_MESSAGES/make.sh "$STM"
390
391echo "[titan]--------------------------------------------------------"
392echo "[titan] Language Po files done"
393echo "[titan]--------------------------------------------------------"
394
395mkdir -p "$HOME"/flashimg/BUILD/titan/var/etc/titan
396mkdir -p "$HOME"/flashimg/BUILD/titan/var/etc/codepages
397mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/lib
398mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
399mkdir -p "$HOME"/flashimg/BUILD/titan/usr/local/bin
400mkdir -p "$HOME"/flashimg/BUILD/titan/sbin
401mkdir -p "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
402mkdir -p "$HOME"/flashimg/BUILD/titan/usr/sbin
403mkdir -p "$HOME"/flashimg/BUILD/titan/usr/bin
404mkdir -p "$HOME"/flashimg/BUILD/titan/usr/lib
405mkdir -p "$HOME"/flashimg/BUILD/titan/usr/share
406mkdir -p "$HOME"/flashimg/BUILD/titan/lib
407mkdir -p "$HOME"/flashimg/BUILD/titan/modules
408
409#if [ "$DISTRO" != "titannit" ];then
410    PLIST=`ls -1 "$HOME"/flashimg/$SRCDIR/plugins`
411
412    for ROUND in $PLIST;do
413        if [ "$ROUND" == "makesh4.sh" ]; then
414            skiped=1
415        else
416            echo "[titan] copy plugins/$ROUND"
417            cp -a "$HOME"/flashimg/$SRCDIR/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
418        fi
419    done
420#else
421#   cp -a $SRC/tmp/rootfs/$BOX/var/usr/local/share/titan/plugins/* "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
422#fi
423
424cp -a "$HOME"/flashimg/$SRCDIR/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
425cp -a "$HOME"/flashimg/$SRCDIR/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
426cat "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.arm.cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.all.cfg | sort -u > "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
427sed 's/&/\\&/g' -i "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
428rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.*.cfg
429
430mkdir "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
431cp -a "$HOME"/flashimg/$SRCDIR/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
432cp -a "$HOME"/flashimg/$SRCDIR/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
433cp -a "$HOME"/flashimg/$SRCDIR/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
434cp titan "$HOME"/flashimg/BUILD/titan/usr/local/bin
435chmod 755 "$HOME"/flashimg/BUILD/titan/usr/local/bin/titan
436cp -a "$HOME"/flashimg/$SRCDIR/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
437cp -a "$HOME"/flashimg/$SRCDIR/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
438cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.html
439rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.*.html
440cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc."$TYPE".png "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc.png
441rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc.*.png
442cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual."$TYPE".png "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual.png
443rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/img/rc_virtual.*.png
444cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual.html
445rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc_virtual.*.html
446# ??????????????
447#cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index."$TYPE".html "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index.html
448rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/index.*.html
449
450cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.mvi
451rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgMusic.*.mvi
452cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.mvi
453rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgBrowser.*.mvi
454cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.mvi
455rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgPicture.*.mvi
456cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo.mvi
457rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVideo.*.mvi
458cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.mvi
459rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.*.mvi
460cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather."$TYPE".mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.mvi
461rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*.mvi
462rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgDVD.*
463rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgRadio.*
464rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgRSS.*
465rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgVLC.*
466rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*
467
468tar -zxvf "$HOME"/flashimg/$SRCDIR/netsurf-3.3/netsurf-git-settings.tar.gz -C "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
469cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
470
471rm -f "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
472ln -s /mnt/config/choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
473
474rm -rf "$HOME"/flashimg/BUILD/titan/usr/lib-all
475
476#crypt
477"$HOME"/flashimg/$SRCDIR/titan/tools/ocrypt -c "$HOME"/flashimg/$SRCDIR/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
478
479rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.svn"`
480rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.deps"`
481rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.libs"`
482rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.h"`
483rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.c"`
484rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.o"`
485rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.po"`
486rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.a"`
487rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.la"`
488rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.lo"`
489rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "*.Tpo"`
490rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "make.sh"`
491rm -rf `find "$HOME"/flashimg/BUILD/titan -type f -name "Makefile.am"`
492rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/networkbrowser/netlib
493rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/tithek/menu
494rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/tithek/tithekmainmenu
495
496cp -a "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan."$TYPE".cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan.cfg
497rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/titan.*.cfg
498
499cp -a "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig."$TYPE" "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig
500rm -rf "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/rcconfig.*
501
502rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skin/*_grid.png
503# mc grid filelist pngs
504#rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skin/*_grid_*.png
505
506cp -a "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/skin/default/skinconfig* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt/
507
508cp -a "$HOME"/flashimg/BUILD/titan "$HOME"/flashimg/BUILD/titan-smal
509rm -rf "$HOME"/flashimg/BUILD/titan-smal/var/usr/local/share/titan/picons
510rm -rf "$HOME"/flashimg/BUILD/titan-smal/var/etc/titan/titan.cfg
511
512echo "[titan]--------------------------------------------------------"
513echo "[titan] building to: "$HOME"/flashimg/BUILD/titan"
514echo "[titan] copy this folder to duckbox: /var/usr/local/share/titan"
515echo "[titan]--------------------------------------------------------"
Note: See TracBrowser for help on using the repository browser.