Changeset 32214


Ignore:
Timestamp:
01/08/15 12:42:08 (7 years ago)
Author:
obi
Message:

update build system for permanently titan building

Location:
titan
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/makemipsel.sh

    r32121 r32214  
    1515ARCH=${15}
    1616SRC="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/builds/"$DISTRO"/"$BOX"
     17SRCDIR=${16}
    1718
    1819echo $*
     
    2122# work
    2223#
    23 #       mv -f "$HOME"/flashimg/source.titan/titan/struct.mipsel.h "$HOME"/flashimg/source.titan/titan/struct.h
     24#       mv -f "$HOME"/flashimg/$SRCDIR/titan/struct.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/struct.h
    2425
    2526#if [ "$GROUP" = "dev" ];then
    26 #       mv -f "$HOME"/flashimg/source.titan/titan/skin.mipsel.h "$HOME"/flashimg/source.titan/titan/skin.h
     27#       mv -f "$HOME"/flashimg/$SRCDIR/titan/skin.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/skin.h
    2728#fi
    2829
     
    110111echo "[titan]--------------------------------------------------------"
    111112
    112 rm -rf "$HOME"/flashimg/source.titan/skin
    113 mkdir "$HOME"/flashimg/source.titan/skin       
     113rm -rf "$HOME"/flashimg/$SRCDIR/skin
     114mkdir "$HOME"/flashimg/$SRCDIR/skin     
    114115
    115116# atemio6200 ??
    116117if [ "$TYPE" = "atemio5200" ];then
    117         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_defnominitv/_path_/usr/local/share/titan/skin/defnominitv "$HOME"/flashimg/source.titan/skin/default
     118        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
    118119else
    119         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_default/_path_/usr/local/share/titan/skin/default "$HOME"/flashimg/source.titan/skin/default
     120        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
    120121fi
    121122
     
    128129echo "[titan] get settings"
    129130echo "[titan]--------------------------------------------------------"
    130 rm -rf "$HOME"/flashimg/source.titan/settings.svn
     131rm -rf "$HOME"/flashimg/$SRCDIR/settings.svn
    131132if [ "$TYPE" = "ufs910" ] || [ "$TYPE" = "ufs922" ];then
    132         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/source.titan/settings.svn
     133        svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
    133134else
    134         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/source.titan/settings.svn
    135 fi
    136 sort -u "$HOME"/flashimg/source.titan/settings.svn/channel > "$HOME"/flashimg/source.titan/settings.svn/channel.sort
    137 mv -f "$HOME"/flashimg/source.titan/settings.svn/channel.sort "$HOME"/flashimg/source.titan/settings.svn/channel
    138 sed s/"^ *"// -i "$HOME"/flashimg/source.titan/settings.svn/channel
     135        svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
     136fi
     137sort -u "$HOME"/flashimg/$SRCDIR/settings.svn/channel > "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort
     138mv -f "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort "$HOME"/flashimg/$SRCDIR/settings.svn/channel
     139sed s/"^ *"// -i "$HOME"/flashimg/$SRCDIR/settings.svn/channel
    139140
    140141echo "[titan]--------------------------------------------------------"
     
    142143echo "[titan]--------------------------------------------------------"
    143144
    144 cp -a "$HOME"/flashimg/source.titan/skins/[^.]* "$HOME"/flashimg/source.titan/plugins
     145cp -a "$HOME"/flashimg/$SRCDIR/skins/[^.]* "$HOME"/flashimg/$SRCDIR/plugins
    145146
    146147echo "[titan]--------------------------------------------------------"
     
    148149echo "[titan]--------------------------------------------------------"
    149150
    150 cd "$HOME"/flashimg/source.titan/titan
     151cd "$HOME"/flashimg/$SRCDIR/titan
    151152rm -rf titan
    152153rm -rf titan.o
    153 rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"`
    154 rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"`
     154rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.o"`
     155rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.so"`
    155156
    156157echo "[titan]--------------------------------------------------------"
     
    162163#echo "[titan]--------------------------------------------------------"
    163164
    164 "$HOME"/flashimg/source.titan/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE
     165"$HOME"/flashimg/$SRCDIR/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE $SRCDIR
    165166
    166167#echo "[titan]--------------------------------------------------------"
     
    172173echo "[titan]--------------------------------------------------------"
    173174
    174 "$HOME"/flashimg/source.titan/titan/tools/gettpk.sh $IPKDIR $VERSION
     175"$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
    175176
    176177echo "[titan]--------------------------------------------------------"
     
    178179echo "[titan]--------------------------------------------------------"
    179180
    180 if [ $BUILDTYPE == 220 ]; then
    181         echo "[titan]--------------------------------------------------------"
    182         echo "[titan] netsurf"
    183         echo "[titan]--------------------------------------------------------"
    184        
    185         cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    186         echo make curl
    187         make curl
    188                        
    189         cd "$HOME"/flashimg/source.titan/netsurf
    190         ./make.sh $STM $DISTRO $BOX $ARCH
    191         cd "$HOME"/flashimg/source.titan/titan
    192         if [ ! -e "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/nsfb ]; then
    193                 echo "[titan]--------------------------------------------------------"
    194                 echo "[titan] netsurf building error !!!"
    195                 echo "[titan] check your src"
    196                 echo "[titan]--------------------------------------------------------"
    197                 touch "$HOME"/flashimg/.ipk-build-error
    198                 exit 1
    199         fi
    200        
    201         echo "[titan]--------------------------------------------------------"
    202         echo "[titan] netsurf done"
    203         echo "[titan]--------------------------------------------------------"
    204        
    205         echo "[titan]--------------------------------------------------------"
    206         echo "[titan] minidlna"
    207         echo "[titan]--------------------------------------------------------"
    208        
    209         cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    210         echo make minidlna-clean
    211         make minidlna-clean
    212         echo make minidlna
    213         make minidlna
    214         cd "$HOME"/flashimg/source.titan/titan
    215        
    216         if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/sbin/minidlna ]; then
    217                 echo "[titan]--------------------------------------------------------"
    218                 echo "[titan] minidlna building error !!!"
    219                 echo "[titan] check your src"
    220                 echo "[titan]--------------------------------------------------------"
    221                 touch "$HOME"/flashimg/.ipk-build-error
    222                 exit 1
    223         fi
    224        
    225         echo "[titan]--------------------------------------------------------"
    226         echo "[titan] minidlna done"
    227         echo "[titan]--------------------------------------------------------"
    228        
    229         if [ $STM != "stm23" ] ;then
    230                 echo "[titan]--------------------------------------------------------"
    231                 echo "[titan] curlftpfs"
    232                 echo "[titan]--------------------------------------------------------"
    233                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    234                 echo make curlftpfs-clean
    235                 make curlftpfs-clean
    236                 echo make curlftpfs
    237                 make curlftpfs
    238                 cd "$HOME"/flashimg/source.titan/titan
    239                
    240                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/curlftpfs ]; then
    241                         echo "[titan]--------------------------------------------------------"
    242                         echo "[titan] curlftpfs building error !!!"
    243                         echo "[titan] check your src"
    244                         echo "[titan]--------------------------------------------------------"
    245                         touch "$HOME"/flashimg/.ipk-build-error
    246                         exit 1
    247                 fi
    248                
    249                
    250                 echo "[titan]--------------------------------------------------------"
    251                 echo "[titan] curlftpfs done"
    252                 echo "[titan]--------------------------------------------------------"
    253                
    254                 echo "[titan]--------------------------------------------------------"
    255                 echo "[titan] djmount"
    256                 echo "[titan]--------------------------------------------------------"
    257                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    258                 echo make djmount-clean
    259                 make djmount-clean
    260                 echo make djmount
    261                 make djmount
    262                 cd "$HOME"/flashimg/source.titan/titan
    263                
    264                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/djmount ]; then
    265                         echo "[titan]--------------------------------------------------------"
    266                         echo "[titan] djmount building error !!!"
    267                         echo "[titan] check your src"
    268                         echo "[titan]--------------------------------------------------------"
    269                         touch "$HOME"/flashimg/.ipk-build-error
    270                         exit 1
    271                 fi
    272                
    273                 echo "[titan]--------------------------------------------------------"
    274                 echo "[titan] djmount done"
    275                 echo "[titan]--------------------------------------------------------"
    276                
    277                 echo "[titan]--------------------------------------------------------"
    278                 echo "[titan] sshfs"
    279                 echo "[titan]--------------------------------------------------------"
    280                
    281                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    282                 echo make sshfs-clean
    283                 make sshfs-clean
    284                 echo make sshfs
    285                 make sshfs
    286                 cd "$HOME"/flashimg/source.titan/titan
    287                
    288                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/sshfs ]; then
    289                         echo "[titan]--------------------------------------------------------"
    290                         echo "[titan] sshfs building error !!!"
    291                         echo "[titan] check your src"
    292                         echo "[titan]--------------------------------------------------------"
    293                         touch "$HOME"/flashimg/.ipk-build-error
    294                         exit 1
    295                 fi
    296                
    297                 echo "[titan]--------------------------------------------------------"
    298                 echo "[titan] sshfs done"
    299                 echo "[titan]--------------------------------------------------------"
    300                
    301                 echo "[titan]--------------------------------------------------------"
    302                 echo "[titan] rarfs"
    303                 echo "[titan]--------------------------------------------------------"
    304                
    305                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    306                 echo make rarfs-clean
    307                 make rarfs-clean
    308                 echo make rarfs
    309                 make rarfs
    310                 cd "$HOME"/flashimg/source.titan/titan
    311                
    312                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/rarfs ]; then
    313                         echo "[titan]--------------------------------------------------------"
    314                         echo "[titan] sshfs building error !!!"
    315                         echo "[titan] check your src"
    316                         echo "[titan]--------------------------------------------------------"
    317                         touch "$HOME"/flashimg/.ipk-build-error
    318                         exit 1
    319                 fi
    320                
    321                 echo "[titan]--------------------------------------------------------"
    322                 echo "[titan] rarfs done"
    323                 echo "[titan]--------------------------------------------------------"
    324        
    325                 echo "[titan]--------------------------------------------------------"
    326                 echo "[titan] gst"
    327                 echo "[titan]--------------------------------------------------------"
    328                
    329                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    330                 echo make gst_plugins_dvbmediasink-clean
    331                 make gst_plugins_dvbmediasink-clean
    332                 echo make gst_plugins_dvbmediasink
    333                 make gst_plugins_dvbmediasink
    334                 cd "$HOME"/flashimg/source.titan/titan
    335                
    336                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/gstreamer-0.10 ]; then
    337                         echo "[titan]--------------------------------------------------------"
    338                         echo "[titan] gst building error !!!"
    339                         echo "[titan] check your src"
    340                         echo "[titan]--------------------------------------------------------"
    341                         touch "$HOME"/flashimg/.ipk-build-error
    342                         exit 1
    343                 fi
    344                
    345                 echo "[titan]--------------------------------------------------------"
    346                 echo "[titan] gst done"
    347                 echo "[titan]--------------------------------------------------------"
    348                
    349                 echo "[titan]--------------------------------------------------------"
    350                 echo "[titan] directfb"
    351                 echo "[titan]--------------------------------------------------------"
    352                
    353                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    354                 echo make directfb-clean
    355                 make directfb-clean
    356                 echo make directfb
    357                 make directfb
    358                 cd "$HOME"/flashimg/source.titan/titan
    359                
    360                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/directfb-1.4-5 ]; then
    361                         echo "[titan]--------------------------------------------------------"
    362                         echo "[titan] directfb building error !!!"
    363                         echo "[titan] check your src"
    364                         echo "[titan]--------------------------------------------------------"
    365                         touch "$HOME"/flashimg/.ipk-build-error
    366                         exit 1
    367                 fi
    368                
    369                 echo "[titan]--------------------------------------------------------"
    370                 echo "[titan] directfb done"
    371                 echo "[titan]--------------------------------------------------------"
    372                
    373                 echo "[titan]--------------------------------------------------------"
    374                 echo "[titan] gmediarender"
    375                 echo "[titan]--------------------------------------------------------"
    376 
    377 
    378                 "$HOME"/flashimg/source.titan/gmediarender/makesh4.sh $STM $MEDIAFW
    379                 if [ ! -e "$HOME"/flashimg/source.titan/gmediarender/src/gmediarender ]; then
    380                         echo "[titan]--------------------------------------------------------"
    381                         echo "[titan] gmediarender building error !!!"
    382                         echo "[titan] check your src"
    383                         echo "[titan]--------------------------------------------------------"
    384                         touch "$HOME"/flashimg/.ipk-build-error
    385                         exit 1
    386                 fi
    387                
    388                 cd "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/cdk
    389                 echo make gmediarender-clean
    390                 make gmediarender-clean
    391                 echo make gmediarender
    392                 make gmediarender
    393                 cd "$HOME"/flashimg/source.titan/titan
    394                
    395                 if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/gmediarender ]; then
    396                         echo "[titan]--------------------------------------------------------"
    397                         echo "[titan] gmediarender building error !!!"
    398                         echo "[titan] check your src"
    399                         echo "[titan]--------------------------------------------------------"
    400                         touch "$HOME"/flashimg/.ipk-build-error
    401                         exit 1
    402                 fi
    403                
    404                 echo "[titan]--------------------------------------------------------"
    405                 echo "[titan] gmediarender done"
    406                 echo "[titan]--------------------------------------------------------"
    407         fi
    408 fi
    409 
    410 if [ $BUILDTYPE == 220 ] || [ $BUILDTYPE == 221 ]; then
    411         #echo "[titan]--------------------------------------------------------"
    412         #echo "[titan] libipkg"
    413         #echo "[titan]--------------------------------------------------------"
    414         #cd "$HOME"/flashimg/source.titan/libipkg
    415         #./makesh4.sh $STM
    416         #cd "$HOME"/flashimg/source.titan/titan
    417         #if [ ! -e "$HOME"/flashimg/source.titan/libipkg/.libs/libipkg.so.0.0.0 ]; then
    418         #       echo "[titan]--------------------------------------------------------"
    419         #       echo "[titan] ipkg building error !!!"
    420         #       echo "[titan] check your src"
    421         #       echo "[titan]--------------------------------------------------------"
    422         #       touch "$HOME"/flashimg/.ipk-build-error
    423         #       exit 1
    424         #fi
    425         #echo "[titan]--------------------------------------------------------"
    426         #echo "[titan] libipkg done"
    427         #echo "[titan]--------------------------------------------------------"
    428        
    429         ###
    430         echo "[titan]--------------------------------------------------------"
    431         echo "[titan] libdreamdvd"
    432         echo "[titan]--------------------------------------------------------"
    433         cd "$HOME"/flashimg/source.titan/libdreamdvd
    434         ./makesh4.sh $STM
    435         cd "$HOME"/flashimg/source.titan/titan
    436         if [ ! -e "$HOME"/flashimg/source.titan/libdreamdvd/.libs/libdreamdvd.so.0.0.0 ]; then
    437                 echo "[titan]--------------------------------------------------------"
    438                 echo "[titan] libdreamdvd building error !!!"
    439                 echo "[titan] check your src"
    440                 echo "[titan]--------------------------------------------------------"
    441                 touch "$HOME"/flashimg/.ipk-build-error
    442                 exit 1
    443         fi
    444         cp "$HOME"/flashimg/source.titan/libdreamdvd/.libs/libdreamdvd.so.0.0.0 "$ROOTDIR"/lib
    445        
    446         echo "[titan]--------------------------------------------------------"
    447         echo "[titan] libdreamdvd done"
    448         echo "[titan]--------------------------------------------------------"
    449         ###
    450 fi
    451 
    452181echo "[titan]--------------------------------------------------------"
    453182echo "[titan] update git cdkroot"
    454183echo "[titan]--------------------------------------------------------"
    455184
    456 #cp "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libdreamdvd/.libs/* $HOME/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib
    457 
    458 echo "[titan]--------------------------------------------------------"
    459 echo "[titan] update git cdkroot done"
    460 echo "[titan]--------------------------------------------------------"
    461 
    462 
    463185echo "[titan]--------------------------------------------------------"
    464186echo "[titan] Make titan"
     
    466188
    467189
    468 #if [ $MEDIAFW = 1 ]; then
    469 #       eplayer=EPLAYER3
    470 #       eplayerinclude="$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libeplayer3/include
    471 #       eplayerlib=eplayer3
    472 #else
    473         eplayer=EPLAYER4
    474         eplayerinclude="$SRC/tmp/sysroots/$BOX/usr/include/gstreamer-0.10
    475                         -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0
    476                         -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2
    477                         -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include"
    478         eplayerlib=gstreamer-0.10
    479 #fi
     190eplayer=EPLAYER4
     191eplayerinclude="$SRC/tmp/sysroots/$BOX/usr/include/gstreamer-0.10
     192                -I$SRC/tmp/sysroots/$BOX/usr/include/glib-2.0
     193                -I$SRC/tmp/sysroots/$BOX/usr/include/libxml2
     194                -I$SRC/tmp/sysroots/$BOX/usr/lib/glib-2.0/include"
     195eplayerlib=gstreamer-0.10
    480196
    481197if [ "$GROUP" = "dev" ]; then
    482 #       devflag="-fexceptions -rdynamic"
    483198        devflag="-finstrument-functions -rdynamic -DBETA"
    484199else
    485200        devflag=""
    486201fi
    487 
    488 #disable mipselport.h blit = -DBLITHELP
    489202
    490203if [ "$DISTRO" = "atemio" ];then
     
    494207fi
    495208
     209cd "$HOME"/flashimg/$SRCDIR/titan
     210pwd
     211
    496212echo "$SRC/tmp/sysroots/$ARCH/usr/bin/$GCCPATH/mipsel-oe-linux-gcc -DMIPSEL -DCAMSUPP -D$eplayer -Os -mhard-float -export-dynamic -Wall -Wno-unused-but-set-variable -Wno-implicit-function-declaration \
    497213        -I $SRC/tmp/sysroots/$BOX/usr/include/freetype2 \
    498214        -I $eplayerinclude \
    499215        -I $SRC/tmp/sysroots/$BOX/usr/include/dreamdvd \
    500         -I "$HOME"/flashimg/source.titan/libdreamdvd \
     216        -I "$HOME"/flashimg/$SRCDIR/libdreamdvd \
    501217        -I "$HOME" \
    502218        -c titan.c
     
    507223        -I $eplayerinclude \
    508224        -I $SRC/tmp/sysroots/$BOX/usr/include/dreamdvd \
    509         -I "$HOME"/flashimg/source.titan/libdreamdvd \
     225        -I "$HOME"/flashimg/$SRCDIR/libdreamdvd \
    510226        -I "$HOME" \
    511227        -c titan.c
     
    542258echo "[titan]--------------------------------------------------------"
    543259
    544 rm -rf "$HOME"/flashimg/source.titan/tpk/tpk
    545 "$HOME"/flashimg/source.titan/tpk/make.sh
    546 
    547 if [ ! -e "$HOME"/flashimg/source.titan/tpk/tpk ]; then
     260rm -rf "$HOME"/flashimg/$SRCDIR/tpk/tpk
     261"$HOME"/flashimg/$SRCDIR/tpk/make.sh
     262
     263if [ ! -e "$HOME"/flashimg/$SRCDIR/tpk/tpk ]; then
    548264        echo "[titan]--------------------------------------------------------"
    549265        echo "[titan] building error !!!"
     
    561277echo "[titan] Make Plugins"
    562278echo "[titan]--------------------------------------------------------"
    563 "$HOME"/flashimg/source.titan/plugins/makemipsel.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO" "$ARCH"
     279"$HOME"/flashimg/$SRCDIR/plugins/makemipsel.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO" "$ARCH"
    564280echo "[titan]--------------------------------------------------------"
    565281echo "[titan] Plugins done"
     
    570286        echo "[titan] Update Language Po files"
    571287        echo "[titan]--------------------------------------------------------"
    572         "$HOME"/flashimg/source.titan/titan/tools/createpo.sh "$SVNUSER" "$GROUP"
     288        "$HOME"/flashimg/$SRCDIR/titan/tools/createpo.sh "$SVNUSER" "$GROUP"
    573289        echo "[titan]--------------------------------------------------------"
    574290        echo "[titan] Update Language Po files done"
     
    579295echo "[titan] Make Language Po files"
    580296echo "[titan]--------------------------------------------------------"
    581 #"$HOME"/flashimg/source.titan/po/de/LC_MESSAGES/make.sh "$STM"
    582 #"$HOME"/flashimg/source.titan/po/fr/LC_MESSAGES/make.sh "$STM"
    583 #"$HOME"/flashimg/source.titan/po/gr/LC_MESSAGES/make.sh "$STM"
    584 #"$HOME"/flashimg/source.titan/po/it/LC_MESSAGES/make.sh "$STM"
    585 #"$HOME"/flashimg/source.titan/po/nl/LC_MESSAGES/make.sh "$STM"
    586 #"$HOME"/flashimg/source.titan/po/pl/LC_MESSAGES/make.sh "$STM"
    587 #"$HOME"/flashimg/source.titan/po/ru/LC_MESSAGES/make.sh "$STM"
    588 #"$HOME"/flashimg/source.titan/po/vn/LC_MESSAGES/make.sh "$STM"
     297#"$HOME"/flashimg/$SRCDIR/po/de/LC_MESSAGES/make.sh "$STM"
     298#"$HOME"/flashimg/$SRCDIR/po/fr/LC_MESSAGES/make.sh "$STM"
     299#"$HOME"/flashimg/$SRCDIR/po/gr/LC_MESSAGES/make.sh "$STM"
     300#"$HOME"/flashimg/$SRCDIR/po/it/LC_MESSAGES/make.sh "$STM"
     301#"$HOME"/flashimg/$SRCDIR/po/nl/LC_MESSAGES/make.sh "$STM"
     302#"$HOME"/flashimg/$SRCDIR/po/pl/LC_MESSAGES/make.sh "$STM"
     303#"$HOME"/flashimg/$SRCDIR/po/ru/LC_MESSAGES/make.sh "$STM"
     304#"$HOME"/flashimg/$SRCDIR/po/vn/LC_MESSAGES/make.sh "$STM"
    589305
    590306echo "[titan]--------------------------------------------------------"
     
    606322mkdir -p "$HOME"/flashimg/BUILD/titan/modules
    607323
    608 PLIST=`ls -1 "$HOME"/flashimg/source.titan/plugins`
     324PLIST=`ls -1 "$HOME"/flashimg/$SRCDIR/plugins`
    609325
    610326for ROUND in $PLIST;do
     
    613329        else
    614330                echo "[titan] copy plugins/$ROUND"
    615                 cp -a "$HOME"/flashimg/source.titan/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
     331                cp -a "$HOME"/flashimg/$SRCDIR/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
    616332        fi
    617333done
    618334
    619 cp -a "$HOME"/flashimg/source.titan/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    620 cp -a "$HOME"/flashimg/source.titan/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
     335cp -a "$HOME"/flashimg/$SRCDIR/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     336cp -a "$HOME"/flashimg/$SRCDIR/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
    621337cat "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.mipsel.cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.all.cfg | sort -u > "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
    622338sed 's/&/\\&/g' -i "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
     
    624340
    625341mkdir "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
    626 cp -a "$HOME"/flashimg/source.titan/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
    627 cp -a "$HOME"/flashimg/source.titan/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    628 cp -a "$HOME"/flashimg/source.titan/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     342cp -a "$HOME"/flashimg/$SRCDIR/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
     343cp -a "$HOME"/flashimg/$SRCDIR/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     344cp -a "$HOME"/flashimg/$SRCDIR/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    629345cp titan "$HOME"/flashimg/BUILD/titan/usr/local/bin
    630346chmod 755 "$HOME"/flashimg/BUILD/titan/usr/local/bin/titan
    631 cp -a "$HOME"/flashimg/source.titan/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    632 cp -a "$HOME"/flashimg/source.titan/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     347cp -a "$HOME"/flashimg/$SRCDIR/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     348cp -a "$HOME"/flashimg/$SRCDIR/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    633349cp -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
    634350rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.*.html
     
    661377rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.*
    662378
    663 tar -zxvf "$HOME"/flashimg/source.titan/netsurf-3.3/netsurf-git-settings.tar.gz -C "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    664 #cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/nsfb "$HOME"/flashimg/BUILD/titan/usr/bin
    665 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    666 #cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/Aliases "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    667 #cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/*.css "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    668 #cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/messages "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     379tar -zxvf "$HOME"/flashimg/$SRCDIR/netsurf-3.3/netsurf-git-settings.tar.gz -C "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     380#cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/nsfb "$HOME"/flashimg/BUILD/titan/usr/bin
     381cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     382#cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Aliases "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     383#cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/*.css "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     384#cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/messages "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    669385
    670386rm -f "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
    671387ln -s /mnt/config/choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
    672388
    673 #cp -a "$HOME"/flashimg/source.titan/libipkg/.libs/libipkg.so.0.0.0 "$HOME"/flashimg/BUILD/titan/lib/libipkg.so.0
    674 #cp -a "$HOME"/flashimg/source.titan/libipkg/.libs/ipkg-cl "$HOME"/flashimg/BUILD/titan/usr/bin/ipkg
     389#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/libipkg.so.0.0.0 "$HOME"/flashimg/BUILD/titan/lib/libipkg.so.0
     390#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/ipkg-cl "$HOME"/flashimg/BUILD/titan/usr/bin/ipkg
    675391
    676392# minidlna
     
    787503#gmediarender
    788504#cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
    789 cp -a "$HOME"/flashimg/source.titan/gmediarender/src/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
     505cp -a "$HOME"/flashimg/$SRCDIR/gmediarender/src/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
    790506cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libupnp.so.6.3.1 "$HOME"/flashimg/BUILD/titan/usr/lib/libupnp.so.6
    791507cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/share/gmediarender "$HOME"/flashimg/BUILD/titan/usr/share
     
    812528
    813529#ipkg
    814 #cp -a "$HOME"/flashimg/source.titan/ipkg "$HOME"/flashimg/BUILD/titan/var/usr/lib
     530#cp -a "$HOME"/flashimg/$SRCDIR/ipkg "$HOME"/flashimg/BUILD/titan/var/usr/lib
    815531#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/status
    816532#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/info/*.control
    817533
    818534#crypt
    819 "$HOME"/flashimg/source.titan/titan/tools/ocrypt -c "$HOME"/flashimg/source.titan/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
     535"$HOME"/flashimg/$SRCDIR/titan/tools/ocrypt -c "$HOME"/flashimg/$SRCDIR/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
    820536
    821537rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.svn"`
  • titan/titan/makesh4.sh

    r32197 r32214  
    1414DISTRO=${14}
    1515ARCH=${15}
     16SRCDIR=${16}
    1617
    1718rm "$HOME"/flashimg/.ipk-build-error
    1819
    1920# work
    20 #mv -f "$HOME"/flashimg/source.titan/titan/struct.mipsel.h "$HOME"/flashimg/source.titan/titan/struct.h
     21#mv -f "$HOME"/flashimg/$SRCDIR/titan/struct.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/struct.h
    2122
    2223#if [ "$GROUP" = "dev" ];then
    23 #       mv -f "$HOME"/flashimg/source.titan/titan/skin.mipsel.h "$HOME"/flashimg/source.titan/titan/skin.h
     24#       mv -f "$HOME"/flashimg/$SRCDIR/titan/skin.mipsel.h "$HOME"/flashimg/$SRCDIR/titan/skin.h
    2425#fi
    2526
     
    107108echo "[titan]--------------------------------------------------------"
    108109
    109 rm -rf "$HOME"/flashimg/source.titan/skin
    110 mkdir "$HOME"/flashimg/source.titan/skin       
    111 svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_default/_path_/usr/local/share/titan/skin/default "$HOME"/flashimg/source.titan/skin/default
     110rm -rf "$HOME"/flashimg/$SRCDIR/skin
     111mkdir "$HOME"/flashimg/$SRCDIR/skin     
     112svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/skinsdefault_default/_path_/usr/local/share/titan/skin/default "$HOME"/flashimg/$SRCDIR/skin/default
    112113
    113114echo "[titan]--------------------------------------------------------"
     
    118119echo "[titan] get settings"
    119120echo "[titan]--------------------------------------------------------"
    120 rm -rf "$HOME"/flashimg/source.titan/settings.svn
     121rm -rf "$HOME"/flashimg/$SRCDIR/settings.svn
    121122if [ "$TYPE" = "ufs910" ] || [ "$TYPE" = "ufs922" ];then
    122         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/source.titan/settings.svn
     123        svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_sat_1_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
    123124elif [ "$TYPE" = "ipbox9000" ];then
    124         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/source.titan/settings.svn
     125        svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
    125126else
    126         svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/source.titan/settings.svn
    127 fi
    128 sort -u "$HOME"/flashimg/source.titan/settings.svn/channel > "$HOME"/flashimg/source.titan/settings.svn/channel.sort
    129 mv -f "$HOME"/flashimg/source.titan/settings.svn/channel.sort "$HOME"/flashimg/source.titan/settings.svn/channel
    130 sed s/"^ *"// -i "$HOME"/flashimg/source.titan/settings.svn/channel
     127        svn co --username $SVNUSER --password $SVNPASS http://"$SVNURL"/svn/ipk/source/settings_default_all_2_0/mnt/settings "$HOME"/flashimg/$SRCDIR/settings.svn
     128fi
     129sort -u "$HOME"/flashimg/$SRCDIR/settings.svn/channel > "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort
     130mv -f "$HOME"/flashimg/$SRCDIR/settings.svn/channel.sort "$HOME"/flashimg/$SRCDIR/settings.svn/channel
     131sed s/"^ *"// -i "$HOME"/flashimg/$SRCDIR/settings.svn/channel
    131132
    132133echo "[titan]--------------------------------------------------------"
     
    134135echo "[titan]--------------------------------------------------------"
    135136
    136 cp -a "$HOME"/flashimg/source.titan/skins/[^.]* "$HOME"/flashimg/source.titan/plugins
     137cp -a "$HOME"/flashimg/$SRCDIR/skins/[^.]* "$HOME"/flashimg/$SRCDIR/plugins
    137138
    138139echo "[titan]--------------------------------------------------------"
     
    140141echo "[titan]--------------------------------------------------------"
    141142
    142 cd "$HOME"/flashimg/source.titan/titan
     143cd "$HOME"/flashimg/$SRCDIR/titan
    143144rm -rf titan
    144145rm -rf titan.o
    145 rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.o"`
    146 rm -rf `find "$HOME"/flashimg/source.titan/plugins -type f -name "*.so"`
     146rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.o"`
     147rm -rf `find "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.so"`
    147148
    148149echo "[titan]--------------------------------------------------------"
     
    154155#echo "[titan]--------------------------------------------------------"
    155156
    156 "$HOME"/flashimg/source.titan/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE
     157"$HOME"/flashimg/$SRCDIR/titan/tools/gettitancode.sh $KERNELDIR $ROOTDIR $TYPE $SRCDIR
    157158
    158159#echo "[titan]--------------------------------------------------------"
     
    164165echo "[titan]--------------------------------------------------------"
    165166
    166 echo "$HOME"/flashimg/source.titan/titan/tools/gettpk.sh $IPKDIR $VERSION
    167 "$HOME"/flashimg/source.titan/titan/tools/gettpk.sh $IPKDIR $VERSION
     167echo "$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
     168"$HOME"/flashimg/$SRCDIR/titan/tools/gettpk.sh $IPKDIR $VERSION $SRCDIR
    168169
    169170echo "[titan]--------------------------------------------------------"
     
    180181        make curl
    181182                       
    182         cd "$HOME"/flashimg/source.titan/netsurf
     183        cd "$HOME"/flashimg/$SRCDIR/netsurf
    183184        ./makesh4.sh $STM
    184         cd "$HOME"/flashimg/source.titan/titan
    185         if [ ! -e "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/nsfb ]; then
     185        cd "$HOME"/flashimg/$SRCDIR/titan
     186        if [ ! -e "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/nsfb ]; then
    186187                echo "[titan]--------------------------------------------------------"
    187188                echo "[titan] netsurf building error !!!"
     
    205206        echo make minidlna
    206207        make minidlna
    207         cd "$HOME"/flashimg/source.titan/titan
     208        cd "$HOME"/flashimg/$SRCDIR/titan
    208209       
    209210        if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/sbin/minidlna ]; then
     
    229230                echo make curlftpfs
    230231                make curlftpfs
    231                 cd "$HOME"/flashimg/source.titan/titan
     232                cd "$HOME"/flashimg/$SRCDIR/titan
    232233               
    233234                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/curlftpfs ]; then
     
    253254                echo make djmount
    254255                make djmount
    255                 cd "$HOME"/flashimg/source.titan/titan
     256                cd "$HOME"/flashimg/$SRCDIR/titan
    256257               
    257258                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/djmount ]; then
     
    277278                echo make sshfs
    278279                make sshfs
    279                 cd "$HOME"/flashimg/source.titan/titan
     280                cd "$HOME"/flashimg/$SRCDIR/titan
    280281               
    281282                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/sshfs ]; then
     
    301302                echo make rarfs
    302303                make rarfs
    303                 cd "$HOME"/flashimg/source.titan/titan
     304                cd "$HOME"/flashimg/$SRCDIR/titan
    304305               
    305306                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/rarfs ]; then
     
    325326                echo make gst_plugins_dvbmediasink
    326327                make gst_plugins_dvbmediasink
    327                 cd "$HOME"/flashimg/source.titan/titan
     328                cd "$HOME"/flashimg/$SRCDIR/titan
    328329               
    329330                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/gstreamer-0.10 ]; then
     
    349350                echo make directfb
    350351                make directfb
    351                 cd "$HOME"/flashimg/source.titan/titan
     352                cd "$HOME"/flashimg/$SRCDIR/titan
    352353               
    353354                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/directfb-1.4-5 ]; then
     
    369370
    370371
    371                 "$HOME"/flashimg/source.titan/gmediarender/makesh4.sh $STM $MEDIAFW
    372                 if [ ! -e "$HOME"/flashimg/source.titan/gmediarender/src/gmediarender ]; then
     372                "$HOME"/flashimg/$SRCDIR/gmediarender/makesh4.sh $STM $MEDIAFW
     373                if [ ! -e "$HOME"/flashimg/$SRCDIR/gmediarender/src/gmediarender ]; then
    373374                        echo "[titan]--------------------------------------------------------"
    374375                        echo "[titan] gmediarender building error !!!"
     
    384385                echo make gmediarender
    385386                make gmediarender
    386                 cd "$HOME"/flashimg/source.titan/titan
     387                cd "$HOME"/flashimg/$SRCDIR/titan
    387388               
    388389                if [ ! -e "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/gmediarender ]; then
     
    405406        #echo "[titan] libipkg"
    406407        #echo "[titan]--------------------------------------------------------"
    407         #cd "$HOME"/flashimg/source.titan/libipkg
     408        #cd "$HOME"/flashimg/$SRCDIR/libipkg
    408409        #./makesh4.sh $STM
    409         #cd "$HOME"/flashimg/source.titan/titan
    410         #if [ ! -e "$HOME"/flashimg/source.titan/libipkg/.libs/libipkg.so.0.0.0 ]; then
     410        #cd "$HOME"/flashimg/$SRCDIR/titan
     411        #if [ ! -e "$HOME"/flashimg/$SRCDIR/libipkg/.libs/libipkg.so.0.0.0 ]; then
    411412        #       echo "[titan]--------------------------------------------------------"
    412413        #       echo "[titan] ipkg building error !!!"
     
    424425        echo "[titan] libdreamdvd"
    425426        echo "[titan]--------------------------------------------------------"
    426         cd "$HOME"/flashimg/source.titan/libdreamdvd
     427        cd "$HOME"/flashimg/$SRCDIR/libdreamdvd
    427428        ./makesh4.sh $STM
    428         cd "$HOME"/flashimg/source.titan/titan
    429         if [ ! -e "$HOME"/flashimg/source.titan/libdreamdvd/.libs/libdreamdvd.so.0.0.0 ]; then
     429        cd "$HOME"/flashimg/$SRCDIR/titan
     430        if [ ! -e "$HOME"/flashimg/$SRCDIR/libdreamdvd/.libs/libdreamdvd.so.0.0.0 ]; then
    430431                echo "[titan]--------------------------------------------------------"
    431432                echo "[titan] libdreamdvd building error !!!"
     
    435436                exit 1
    436437        fi
    437         cp "$HOME"/flashimg/source.titan/libdreamdvd/.libs/libdreamdvd.so.0.0.0 "$ROOTDIR"/lib
     438        cp "$HOME"/flashimg/$SRCDIR/libdreamdvd/.libs/libdreamdvd.so.0.0.0 "$ROOTDIR"/lib
    438439       
    439440        echo "[titan]--------------------------------------------------------"
     
    480481        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/include/freetype2 \
    481482        -I $eplayerinclude \
    482         -I "$HOME"/flashimg/source.titan/libdreamdvd \
     483        -I "$HOME"/flashimg/$SRCDIR/libdreamdvd \
    483484        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/driver/bpamem \
    484485        -I "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/cvs/apps/misc/tools/libmmeimage \
    485         -I "$HOME"/flashimg/source.titan \
     486        -I "$HOME"/flashimg/$SRCDIR \
    486487        -c titan.c
    487488       
     
    490491#       -o titan
    491492
    492 #cd "$HOME"/flashimg/source.titan/titan
     493#cd "$HOME"/flashimg/$SRCDIR/titan
    493494#mkdir .deps
    494495
    495 #"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -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. -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/freetype2 -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libeplayer3/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libmmeimage -I"$HOME"/flashimg/source.titan/titan  -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/source.titan/libdreamdvd -DSH4 -DEPLAYER3 -Deplayer3 -DDVDPLAYER -Os -export-dynamic -Wall -Wno-unused-but-set-variable -pipe -Os -MT titan-titan.o -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
     496#"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -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. -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/include/freetype2 -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libeplayer3/include -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/apps/misc/tools/libmmeimage -I"$HOME"/flashimg/$SRCDIR/titan  -I"$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/cvs/driver/bpamem -I"$HOME"/flashimg/$SRCDIR/libdreamdvd -DSH4 -DEPLAYER3 -Deplayer3 -DDVDPLAYER -Os -export-dynamic -Wall -Wno-unused-but-set-variable -pipe -Os -MT titan-titan.o -MD -MP -MF .deps/titan-titan.Tpo -c -o titan-titan.o `test -f 'titan.c' || echo './'`titan.c
    496497/bin/sh "$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/host/bin/libtool --tag=CC   --mode=link "$HOME"/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc -DSH4 -Deplayer3 -DDVDPLAYER -Os -export-dynamic -Wall -Wno-unused-but-set-variable -pipe -Os  -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib -L/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/lib -L/home/atemio/flashimg/BUILDGIT/checkout_$STM/tdt/tufsbox/cdkroot/usr/lib -o titan titan.o -lpthread -ldl -lpng -lfreetype -leplayer3 -ldreamdvd -ljpeg -lmmeimage -lmme_host
    497 cp "$HOME"/flashimg/source.titan/titan/.libs/titan "$HOME"/flashimg/source.titan/titan
     498cp "$HOME"/flashimg/$SRCDIR/titan/.libs/titan "$HOME"/flashimg/$SRCDIR/titan
    498499"$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/devkit/sh4/bin/sh4-linux-strip titan
    499500
     
    518519echo "[titan]--------------------------------------------------------"
    519520
    520 rm -rf "$HOME"/flashimg/source.titan/tpk/tpk
    521 "$HOME"/flashimg/source.titan/tpk/make.sh
    522 
    523 if [ ! -e "$HOME"/flashimg/source.titan/tpk/tpk ]; then
     521rm -rf "$HOME"/flashimg/$SRCDIR/tpk/tpk
     522"$HOME"/flashimg/$SRCDIR/tpk/make.sh $SRCDIR
     523
     524if [ ! -e "$HOME"/flashimg/$SRCDIR/tpk/tpk ]; then
    524525        echo "[titan]--------------------------------------------------------"
    525526        echo "[titan] building error !!!"
     
    537538echo "[titan] Make Plugins"
    538539echo "[titan]--------------------------------------------------------"
    539 "$HOME"/flashimg/source.titan/plugins/makesh4.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO"
     540"$HOME"/flashimg/$SRCDIR/plugins/makesh4.sh "$STM" "$MEDIAFW" "$GROUP" "$BOX" "$DISTRO"
    540541echo "[titan]--------------------------------------------------------"
    541542echo "[titan] Plugins done"
     
    546547        echo "[titan] Update Language Po files"
    547548        echo "[titan]--------------------------------------------------------"
    548         "$HOME"/flashimg/source.titan/titan/tools/createpo.sh "$SVNUSER" "$GROUP"
     549        "$HOME"/flashimg/$SRCDIR/titan/tools/createpo.sh "$SVNUSER" "$GROUP" $SRCDIR
    549550        echo "[titan]--------------------------------------------------------"
    550551        echo "[titan] Update Language Po files done"
     
    555556#echo "[titan] Make Language Po files"
    556557#echo "[titan]--------------------------------------------------------"
    557 #"$HOME"/flashimg/source.titan/po/de/LC_MESSAGES/make.sh "$STM"
    558 #"$HOME"/flashimg/source.titan/po/fr/LC_MESSAGES/make.sh "$STM"
    559 #"$HOME"/flashimg/source.titan/po/gr/LC_MESSAGES/make.sh "$STM"
    560 #"$HOME"/flashimg/source.titan/po/it/LC_MESSAGES/make.sh "$STM"
    561 #"$HOME"/flashimg/source.titan/po/nl/LC_MESSAGES/make.sh "$STM"
    562 #"$HOME"/flashimg/source.titan/po/pl/LC_MESSAGES/make.sh "$STM"
    563 #"$HOME"/flashimg/source.titan/po/ru/LC_MESSAGES/make.sh "$STM"
    564 #"$HOME"/flashimg/source.titan/po/vn/LC_MESSAGES/make.sh "$STM"
    565 #"$HOME"/flashimg/source.titan/po/en/LC_MESSAGES/make.sh "$STM"
     558#"$HOME"/flashimg/$SRCDIR/po/de/LC_MESSAGES/make.sh "$STM"
     559#"$HOME"/flashimg/$SRCDIR/po/fr/LC_MESSAGES/make.sh "$STM"
     560#"$HOME"/flashimg/$SRCDIR/po/gr/LC_MESSAGES/make.sh "$STM"
     561#"$HOME"/flashimg/$SRCDIR/po/it/LC_MESSAGES/make.sh "$STM"
     562#"$HOME"/flashimg/$SRCDIR/po/nl/LC_MESSAGES/make.sh "$STM"
     563#"$HOME"/flashimg/$SRCDIR/po/pl/LC_MESSAGES/make.sh "$STM"
     564#"$HOME"/flashimg/$SRCDIR/po/ru/LC_MESSAGES/make.sh "$STM"
     565#"$HOME"/flashimg/$SRCDIR/po/vn/LC_MESSAGES/make.sh "$STM"
     566#"$HOME"/flashimg/$SRCDIR/po/en/LC_MESSAGES/make.sh "$STM"
    566567
    567568echo "[titan]--------------------------------------------------------"
     
    583584mkdir -p "$HOME"/flashimg/BUILD/titan/modules
    584585
    585 PLIST=`ls -1 "$HOME"/flashimg/source.titan/plugins`
     586PLIST=`ls -1 "$HOME"/flashimg/$SRCDIR/plugins`
    586587
    587588for ROUND in $PLIST;do
     
    590591        else
    591592                echo "[titan] copy plugins/$ROUND"
    592                 cp -a "$HOME"/flashimg/source.titan/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
     593                cp -a "$HOME"/flashimg/$SRCDIR/plugins/"$ROUND" "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins
    593594        fi
    594595done
    595596
    596 cp -a "$HOME"/flashimg/source.titan/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    597 cp -a "$HOME"/flashimg/source.titan/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
     597cp -a "$HOME"/flashimg/$SRCDIR/help "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     598cp -a "$HOME"/flashimg/$SRCDIR/var.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan
    598599cat "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.sh4.cfg "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.all.cfg | sort -u > "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
    599600sed 's/&/\\&/g' -i "$HOME"/flashimg/BUILD/titan/var/etc/titan/titan-merge.cfg
     
    601602
    602603mkdir "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
    603 cp -a "$HOME"/flashimg/source.titan/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
    604 cp -a "$HOME"/flashimg/source.titan/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    605 cp -a "$HOME"/flashimg/source.titan/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     604cp -a "$HOME"/flashimg/$SRCDIR/mnt.settings/* "$HOME"/flashimg/BUILD/titan/var/etc/titan.mnt
     605cp -a "$HOME"/flashimg/$SRCDIR/skin "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     606cp -a "$HOME"/flashimg/$SRCDIR/po "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    606607cp titan "$HOME"/flashimg/BUILD/titan/usr/local/bin
    607608chmod 755 "$HOME"/flashimg/BUILD/titan/usr/local/bin/titan
    608 cp -a "$HOME"/flashimg/source.titan/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    609 cp -a "$HOME"/flashimg/source.titan/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     609cp -a "$HOME"/flashimg/$SRCDIR/picons "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
     610cp -a "$HOME"/flashimg/$SRCDIR/web "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan
    610611cp -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
    611612rm -rf "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/web/rc.*.html
     
    651652#       ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgSettings.mvi
    652653#       ln -s bgVideo.mvi "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/plugins/mc/skin/bgWeather.mvi
    653 #       cd "$HOME"/flashimg/source.titan/titan
     654#       cd "$HOME"/flashimg/$SRCDIR/titan
    654655#fi
    655656
    656 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/nsfb "$HOME"/flashimg/BUILD/titan/usr/bin
    657 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    658 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/Aliases "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    659 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/*.css "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    660 cp -a "$HOME"/flashimg/source.titan/netsurf/netsurf-2.8/framebuffer/res/config/messages "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     657cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/nsfb "$HOME"/flashimg/BUILD/titan/usr/bin
     658cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     659cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/Aliases "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     660cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/*.css "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
     661cp -a "$HOME"/flashimg/$SRCDIR/netsurf/netsurf-2.8/framebuffer/res/config/messages "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf
    661662
    662663rm -f "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
    663664ln -s /mnt/config/choices "$HOME"/flashimg/BUILD/titan/var/usr/local/share/titan/netsurf/Choices
    664665
    665 #cp -a "$HOME"/flashimg/source.titan/libipkg/.libs/libipkg.so.0.0.0 "$HOME"/flashimg/BUILD/titan/lib/libipkg.so.0
    666 #cp -a "$HOME"/flashimg/source.titan/libipkg/.libs/ipkg-cl "$HOME"/flashimg/BUILD/titan/usr/bin/ipkg
     666#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/libipkg.so.0.0.0 "$HOME"/flashimg/BUILD/titan/lib/libipkg.so.0
     667#cp -a "$HOME"/flashimg/$SRCDIR/libipkg/.libs/ipkg-cl "$HOME"/flashimg/BUILD/titan/usr/bin/ipkg
    667668
    668669# minidlna
     
    779780#gmediarender
    780781#cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/bin/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
    781 cp -a "$HOME"/flashimg/source.titan/gmediarender/src/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
     782cp -a "$HOME"/flashimg/$SRCDIR/gmediarender/src/gmediarender "$HOME"/flashimg/BUILD/titan/usr/bin
    782783cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/lib/libupnp.so.6.3.1 "$HOME"/flashimg/BUILD/titan/usr/lib/libupnp.so.6
    783784cp -a "$HOME"/flashimg/BUILDGIT/checkout_"$STM"/tdt/tufsbox/cdkroot/usr/share/gmediarender "$HOME"/flashimg/BUILD/titan/usr/share
     
    804805
    805806#ipkg
    806 #cp -a "$HOME"/flashimg/source.titan/ipkg "$HOME"/flashimg/BUILD/titan/var/usr/lib
     807#cp -a "$HOME"/flashimg/$SRCDIR/ipkg "$HOME"/flashimg/BUILD/titan/var/usr/lib
    807808#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/status
    808809#sed "s/Version:.*/Version: $VERSION/" -i "$HOME"/flashimg/BUILD/titan/var/usr/lib/ipkg/info/*.control
    809810
    810811#crypt
    811 "$HOME"/flashimg/source.titan/titan/tools/ocrypt -c "$HOME"/flashimg/source.titan/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
     812"$HOME"/flashimg/$SRCDIR/titan/tools/ocrypt -c "$HOME"/flashimg/$SRCDIR/titan/tools/trustlist "$HOME"/flashimg/BUILD/titan/var/etc/codepages/codepage.868
    812813
    813814rm -rf `find "$HOME"/flashimg/BUILD/titan -type d -name "*.svn"`
  • titan/titan/tools/createpo.sh

    r30142 r32214  
    44GROUP=$2
    55TYPE=update
     6SRCDIR=$3
    67
    78if [ -z "$1" ]; then
     
    1516fi
    1617
    17 rm -rf "$HOME"/flashimg/source.titan/titan/tools/tmp
    18 mkdir -p "$HOME"/flashimg/source.titan/titan/tools/tmp
    19 
    20 LIST=`find "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins -type f -name "*.h"`
    21 LIST="$LIST "`find "$HOME"/flashimg/source.titan/titan "$HOME"/flashimg/source.titan/plugins -type f -name "*.c"`
    22 POLIST=`find "$HOME"/flashimg/source.titan/po -type f -name "*_auto.po"`
    23 SKINLIST=`find "$HOME"/flashimg/source.titan -type f -name "*kin.xml"`
    24 HLIST=`find "$HOME"/flashimg/source.titan/web -type f -name "*.html"`
     18rm -rf "$HOME"/flashimg/$SRCDIR/titan/tools/tmp
     19mkdir -p "$HOME"/flashimg/$SRCDIR/titan/tools/tmp
     20
     21LIST=`find "$HOME"/flashimg/$SRCDIR/titan "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.h"`
     22LIST="$LIST "`find "$HOME"/flashimg/$SRCDIR/titan "$HOME"/flashimg/$SRCDIR/plugins -type f -name "*.c"`
     23POLIST=`find "$HOME"/flashimg/$SRCDIR/po -type f -name "*_auto.po"`
     24SKINLIST=`find "$HOME"/flashimg/$SRCDIR -type f -name "*kin.xml"`
     25HLIST=`find "$HOME"/flashimg/$SRCDIR/web -type f -name "*.html"`
    2526
    2627for ROUND in $LIST; do
    27         cp -a $ROUND "$HOME"/flashimg/source.titan/titan/tools/tmp
     28        cp -a $ROUND "$HOME"/flashimg/$SRCDIR/titan/tools/tmp
    2829done
    2930
     
    3334        echo "[createpo] webif update $FILENAME"
    3435
    35         cat $ROUND | sed 's/_(/\ntmpstr = _(/g' | grep ^"tmpstr = _(" | sed 's/").*/");/g' >> "$HOME"/flashimg/source.titan/titan/tools/tmp/webif_$FILENAME.h
    36 done
    37 
    38 cd "$HOME"/flashimg/source.titan/titan/tools/tmp
     36        cat $ROUND | sed 's/_(/\ntmpstr = _(/g' | grep ^"tmpstr = _(" | sed 's/").*/");/g' >> "$HOME"/flashimg/$SRCDIR/titan/tools/tmp/webif_$FILENAME.h
     37done
     38
     39cd "$HOME"/flashimg/$SRCDIR/titan/tools/tmp
    3940
    4041for ROUND in $SKINLIST; do
     
    4546
    4647        echo "[createpo] skin " "$SECTION1"_"$SECTION2"_"$NAME".h
    47         cp "$HOME"/flashimg/source.titan/titan/tools/dummy "$HOME"/flashimg/source.titan/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
    48 
    49         cat $ROUND | grep title= | sed 's/title=/\ntitle=/' | grep ^title= | cut -d '"' -f2 | sort -u | sed '/^ *$/d' | tr '\n' '#' | sed 's/#\+/\");\ntmpstr = _(\"\ /g'| sed 's/" /"/' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
    50         cat $ROUND | grep text= | sed 's/text=/\ntext=/' | grep ^text= | cut -d '"' -f2 | sort -u | sed '/^ *$/d' | tr '\n' '#' | sed 's/#\+/\");\ntmpstr = _(\"\ /g'| sed 's/" /"/' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
    51 done
    52 
    53 cat "$HOME"/ipk/source*/*/CONTROL/control | grep Section: | sort -u | sed 's!Section: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tpk_section.h
    54 cat "$HOME"/ipk/source*/*/CONTROL/control | grep Showname: | sort -u | sed 's!Showname: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tpk_showname.h
    55 cat "$HOME"/ipk/source*/*/CONTROL/control | grep Description: | sort -u | sed 's!Description: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tpk_description.h
    56 cat "$HOME"/flashimg/source.titan/skins/tithek/tithekmainmenu/*.list | grep -v internettv | cut -d"#" -f1 | sort -u | sed -e 's/^/tmpstr = _("/' | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tithek_mainmenu.h
    57 #cat /var/www/atemio/web/mediathek/*/*.category.list  | cut -d"#" -f1 | sort -u | sed -e 's/^/tmpstr = _("/' | grep -v link= | grep -v title= | tr '\0' '#' | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tithek_submenu.h
    58 ls "$HOME"/flashimg/source.titan/help/*/ | sed 's/.txt/");/g' | sed 's/^/tmpstr = _("/g' >> "$HOME"/flashimg/source.titan/titan/tools/tmp/webif_help.h
    59 
    60 file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/error/coding.log 2>&1
     48        cp "$HOME"/flashimg/$SRCDIR/titan/tools/dummy "$HOME"/flashimg/$SRCDIR/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
     49
     50        cat $ROUND | grep title= | sed 's/title=/\ntitle=/' | grep ^title= | cut -d '"' -f2 | sort -u | sed '/^ *$/d' | tr '\n' '#' | sed 's/#\+/\");\ntmpstr = _(\"\ /g'| sed 's/" /"/' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
     51        cat $ROUND | grep text= | sed 's/text=/\ntext=/' | grep ^text= | cut -d '"' -f2 | sort -u | sed '/^ *$/d' | tr '\n' '#' | sed 's/#\+/\");\ntmpstr = _(\"\ /g'| sed 's/" /"/' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/"$SECTION1"_"$SECTION2"_"$NAME".h
     52done
     53
     54cat "$HOME"/ipk/source*/*/CONTROL/control | grep Section: | sort -u | sed 's!Section: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/tpk_section.h
     55cat "$HOME"/ipk/source*/*/CONTROL/control | grep Showname: | sort -u | sed 's!Showname: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/tpk_showname.h
     56cat "$HOME"/ipk/source*/*/CONTROL/control | grep Description: | sort -u | sed 's!Description: !tmpstr = _("!g' | sed 's!Package:!\nPackage!g' | grep ^tmpstr | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/tpk_description.h
     57cat "$HOME"/flashimg/$SRCDIR/skins/tithek/tithekmainmenu/*.list | grep -v internettv | cut -d"#" -f1 | sort -u | sed -e 's/^/tmpstr = _("/' | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/tithek_mainmenu.h
     58#cat /var/www/atemio/web/mediathek/*/*.category.list  | cut -d"#" -f1 | sort -u | sed -e 's/^/tmpstr = _("/' | grep -v link= | grep -v title= | tr '\0' '#' | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/$SRCDIR/titan/tools/tmp/tithek_submenu.h
     59ls "$HOME"/flashimg/$SRCDIR/help/*/ | sed 's/.txt/");/g' | sed 's/^/tmpstr = _("/g' >> "$HOME"/flashimg/$SRCDIR/titan/tools/tmp/webif_help.h
     60
     61file --mime-encoding "$HOME"/flashimg/$SRCDIR/po/*/*/*.po >> "$HOME"/flashimg/$SRCDIR/error/coding.log 2>&1
    6162
    6263error=0
     
    8586
    8687                cmd="xgettext --omit-header -j -k_ *.* -o $ROUND_UTF"
    87                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
    88                 $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
     88                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/$SRCDIR/error/po.log
     89                $cmd >> "$HOME"/flashimg/$SRCDIR/error/po.log 2>&1
    8990                if [ ! -e "$ROUND_UTF" ] || [ `cat "$ROUND_UTF" | wc -l` -eq 0 ]; then error="3"; break;fi
    90                 log=`cat "$HOME"/flashimg/source.titan/error/po.log`
     91                log=`cat "$HOME"/flashimg/$SRCDIR/error/po.log`
    9192                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="4"; break;fi
    9293
    9394                cmd="xgettext --omit-header -k_ *.* -o $ROUND_NEW"
    94                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
    95                 $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
     95                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/$SRCDIR/error/po.log
     96                $cmd >> "$HOME"/flashimg/$SRCDIR/error/po.log 2>&1
    9697                if [ ! -e "$ROUND_NEW" ] || [ `cat "$ROUND_NEW" | wc -l` -eq 0 ]; then error="5"; break;fi
    97                 log=`cat "$HOME"/flashimg/source.titan/error/po.log`
     98                log=`cat "$HOME"/flashimg/$SRCDIR/error/po.log`
    9899                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="6";break;fi
    99100
     
    125126echo ROUND: $ROUND
    126127
    127 #if [ "$ROUND" = "/home/atemio/flashimg/source.titan/po/vn/LC_MESSAGES/titan.po_auto.po" ];then
     128#if [ "$ROUND" = "/home/atemio/flashimg/$SRCDIR/po/vn/LC_MESSAGES/titan.po_auto.po" ];then
    128129                cat $ROUND_MERGE | sed 's/"Content-Type:.*//g' > $OUTFILE_PO
    129130#else
     
    133134
    134135                cmd="msgfmt -v $OUTFILE_PO -o $OUTFILE_MO"
    135                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
    136                 $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
     136                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/$SRCDIR/error/po.log
     137                $cmd >> "$HOME"/flashimg/$SRCDIR/error/po.log 2>&1
    137138                if [ ! -e "$OUTFILE_MO" ] || [ `cat "$OUTFILE_MO" | wc -l` -eq 0 ]; then error="12"; break;fi
    138                 log=`cat "$HOME"/flashimg/source.titan/error/po.log`
     139                log=`cat "$HOME"/flashimg/$SRCDIR/error/po.log`
    139140                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="13"; break;fi
    140141
     
    159160fi
    160161
    161 file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/error/coding.log 2>&1
     162file --mime-encoding "$HOME"/flashimg/$SRCDIR/po/*/*/*.po >> "$HOME"/flashimg/$SRCDIR/error/coding.log 2>&1
    162163
    163164echo "[createpo.sh] ###################### error log start ##########################"
    164 cat "$HOME"/flashimg/source.titan/error/po.log
     165cat "$HOME"/flashimg/$SRCDIR/error/po.log
    165166echo "[createpo.sh] ####################### error log end ###########################"
    166167
     
    168169echo "[createpo.sh] check group $GROUP"
    169170
    170 cd "$HOME"/flashimg/source.titan/po
     171cd "$HOME"/flashimg/$SRCDIR/po
    171172if [ "$SVNUSER" = "aafsvn" ] && [ "$GROUP" = "dev" ] && [ "$error" = "0" ];then
    172173        echo "[createpo.sh] svn commit -m [titan] autoupdate po files"
    173174        svn commit -m "[titan] autoupdate po files"
    174         svn commit "$HOME"/flashimg/source.titan/po
     175        svn commit "$HOME"/flashimg/$SRCDIR/po
    175176elif [ "$SVNUSER" = "aafsvn" ] && [ "$GROUP" = "dev" ];then
    176177        echo "[createpo.sh] svn commit -m [titan] ERROR autoupdate po files"
    177178       
    178         cp -a "$HOME"/flashimg/source.titan/error/po.log "$HOME"/flashimg/source.titan/error/create_po_error_code
     179        cp -a "$HOME"/flashimg/$SRCDIR/error/po.log "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
    179180       
    180         LINE=`cat "$HOME"/flashimg/source.titan/error/po.log | grep -n "fatal error" | cut -d: -f1`
     181        LINE=`cat "$HOME"/flashimg/$SRCDIR/error/po.log | grep -n "fatal error" | cut -d: -f1`
    181182        if [ ! -z "$LINE" ];then
    182183                LINE=`expr $LINE - 1`
    183                 FILE=`cat "$HOME"/flashimg/source.titan/error/po.log | sed -ne ""$LINE"p" | cut -d: -f1`
    184                 LINE=`cat "$HOME"/flashimg/source.titan/error/po.log | sed -ne ""$LINE"p" | cut -d: -f2`
     184                FILE=`cat "$HOME"/flashimg/$SRCDIR/error/po.log | sed -ne ""$LINE"p" | cut -d: -f1`
     185                LINE=`cat "$HOME"/flashimg/$SRCDIR/error/po.log | sed -ne ""$LINE"p" | cut -d: -f2`
    185186                LINE1=`expr $LINE - 1`
    186187                LINE2=`expr $LINE + 1`
    187                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    188                 echo "[createpo.sh] ###### error should be in the middle #######" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    189                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    190                 cat -n "$FILE" | sed -ne ""$LINE1","$LINE2"p" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    191                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     188                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     189                echo "[createpo.sh] ###### error should be in the middle #######" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     190                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     191                cat -n "$FILE" | sed -ne ""$LINE1","$LINE2"p" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     192                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
    192193        fi
    193194
    194         echo "[createpo.sh] ################## coding #################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    195         cat "$HOME"/flashimg/source.titan/error/coding.log >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    196 
    197         cd "$HOME"/flashimg/source.titan/error
     195        echo "[createpo.sh] ################## coding #################" >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     196        cat "$HOME"/flashimg/$SRCDIR/error/coding.log >> "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
     197
     198        cd "$HOME"/flashimg/$SRCDIR/error
    198199        svn commit -m "[titan] ERROR autoupdate po files"
    199         svn commit "$HOME"/flashimg/source.titan/error/create_po_error_code
     200        svn commit "$HOME"/flashimg/$SRCDIR/error/create_po_error_code
    200201else
    201202        echo "[createpo.sh] skip: svn commit"
  • titan/titan/tools/gettitancode.sh

    r23870 r32214  
    33ROOTDIR=$2
    44TYPE=$3
     5SRCDIR=$4
    56
    6 cd "$HOME"/flashimg/source.titan/titan/tools
     7cd "$HOME"/flashimg/$SRCDIR/titan/tools
    78
    89rm tmp
  • titan/titan/tools/gettpk.sh

    r23819 r32214  
    22TPKDIR=$1
    33VERSION=$2
     4SRCDIR=3
    45
    56. "$HOME"/flashimg/config/make-config
    67
    7 cd "$HOME"/flashimg/source.titan/titan/tools
     8cd "$HOME"/flashimg/$SRCDIR/titan/tools
    89
    910echo gettpkg extensions.h patch 1
  • titan/tpk/make.sh

    r21469 r32214  
    1 gcc -D TPKCREATE -D WORKDIR=\"$HOME/ipk/BUILD\" "$HOME"/flashimg/source.titan/tpk/tpk.c -Wall -I "$HOME"/flashimg/source.titan/titan -o "$HOME"/flashimg/source.titan/tpk/tpk
     1SRCDIR=$1
     2gcc -D TPKCREATE -D WORKDIR=\"$HOME/ipk/BUILD\" "$HOME"/flashimg/$SRCDIR/tpk/tpk.c -Wall -I "$HOME"/flashimg/$SRCDIR/titan -o "$HOME"/flashimg/$SRCDIR/tpk/tpk
Note: See TracChangeset for help on using the changeset viewer.