source: diffs/qbittorrent_3.1.8_GA.diff@ 168

Last change on this file since 168 was 158, checked in by Silvan Scherrer, 11 years ago

SMTube 1.8 release and QBittorrent 3.1.8 release

File size: 9.8 KB
  • E:\trees\qbittorrent\trunk

    diff -Naur -x '*.qm' -x geoip.dat -x conf.pri E:\trees\qbittorrent\trunk\..\vendor\current/build_os2.cmd E:\trees\qbittorrent\trunk/build_os2.cmd
    old new  
     1/* qbittorrent Build Script */
     2/* version history */
     3/* version 0.1.0 from 26.11.2013 Silvan (first edition) */
     4
     5/* init the version string (don't forget to change) */
     6version = "0.1.0"
     7version_date = "26.11.2013"
     8'@echo off'
     9
     10parse arg command option
     11parse source . . scriptFile
     12
     13/* init the required vars */
     14qRC = 0
     15mRC = 0
     16buildDir    = strip(directory(),'T','\') /* Make sure we have no trailing backslash */
     17sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile))
     18vendorDir  = sourceDir || '\..\vendor\current'
     19diffDir    = sourceDir || '\..\'
     20srcDir     = sourceDir
     21OS2Dir     = sourceDir
     22installDir = buildDir || '\install'
     23qErrorFile = buildDir||'\qmake.err'
     24qOutFile   = buildDir||'\qmake.out'
     25mErrorFile = buildDir||'\make.err'
     26mOutFile   = buildDir||'\make.out'
     27
     28/* get the Qbittorrent version */
     29Qbittorrent_version = '0.0.0'
     30Qbittorrent_build = ' '
     31call version
     32internal_build = translate(Qbittorrent_version, '_', '.')
     33
     34title = "QBittorrent for eCS (OS/2) build script v" || version || " from " || version_date
     35say title
     36say
     37say "Build directory      :" buildDir
     38say "Source directory     :" sourceDir
     39say
     40say "QBittorrent version  :" Qbittorrent_version
     41say "            build    :" Qbittorrent_build
     42say
     43
     44/* translate command to all upercase */
     45command = translate(command)
     46
     47if command = "" then signal help
     48
     49
     50if command = "INSTALL" then do
     51    if option \== "" then do
     52        Qbittorrent_build = option
     53    end
     54    select
     55        when Qbittorrent_build \== "" then do
     56          zipFile = installDir || '\qbit-' || internal_build || '-' || Qbittorrent_build || '.zip'
     57        end
     58        otherwise do
     59          signal help
     60        end
     61    end
     62end
     63
     64/* now we translate also the option */
     65option = translate(option)
     66
     67if sourceDir \== buildDir then do
     68    say "Shadow build in progress ..."
     69    say
     70end
     71
     72say "Executing command: "command option
     73
     74select
     75    when command = "MAKE" & option = "CLEAN" then do
     76
     77        say "cleaning the tree"
     78        call make 'distclean'
     79
     80        say "please execute this script again with 'make' to build QBittorrent"
     81
     82    end
     83    when command = "MAKE" then do
     84
     85        say "creating QBittorrent makefile"
     86        call qmake
     87
     88        if qRC = 0 then do
     89            say "building QBittorrent"
     90            if option = "" then do
     91                call make
     92            end
     93            else do
     94                call make 'debug'
     95            end
     96        end
     97
     98    end
     99
     100    when command = "INSTALL" then do
     101
     102/* first delete everything */
     103        call deleteall
     104
     105/* create the installDir */
     106        ok = SysMkDir(installDir)
     107
     108/* copy the exe */
     109        ok = SysCopyObject(buildDir||'\src\Qbittorrent.exe',installDir)
     110
     111/* copy all dll */
     112        ok = SysFileTree(buildDir||'\src\*.dll', rm.,'FOS')
     113        do i = 1 to rm.0
     114          ok = SysCopyObject(rm.i, installDir)
     115        end
     116
     117/* copy the readme */
     118        rm.0 = 1
     119        rm.1 = 'install.os2'
     120        do i = 1 to rm.0
     121        cmdtorun = 'sed "s;_VERSION_;' || Qbittorrent_version || ';g" ' || OS2Dir || '\' || rm.i || ' | sed "s;_BUILD_;' || Qbittorrent_build || ';g" >' || installDir || '\' || rm.i
     122        address cmd cmdtorun
     123        end
     124
     125/* copy different stuff */
     126        rm.0 = 3
     127        rm.1 = 'changelog'
     128        frmDir.1 = OS2Dir
     129        toDir.1 = installDir
     130        rm.2 = 'COPYING'
     131        frmDir.2 = OS2Dir
     132        toDir.2 = installDir
     133        rm.3 = 'AUTHORS'
     134        frmDir.3 = OS2Dir
     135        toDir.3 = installDir
     136        do i = 1 to rm.0
     137        cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i
     138        address cmd cmdtorun
     139        end
     140
     141/* zip all dynamic stuff */
     142        ok = directory(installDir)
     143        cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip'
     144        address cmd cmdtorun
     145        ok = directory(buildDir)
     146
     147/* zip all icons */
     148
     149    end
     150
     151    when command = "UNINSTALL" then do
     152
     153        call deleteall
     154       
     155    end
     156
     157    when command = "DIFF" then do
     158
     159        address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x *.qm -x geoip.dat -x conf.pri > ' || diffDir || 'qbittorrent_' || Qbittorrent_version || '_' || Qbittorrent_build || '.diff'
     160       
     161    end
     162
     163    otherwise do
     164        say 'Unknown parameter "'command'" - aborting...'
     165        exit 1
     166    end
     167end
     168
     169/* cleanup the mess */
     170error:
     171
     172if qRC = 0 & mRC = 0 then do
     173    ok = SysFileDelete(mOutFile)
     174    ok = SysFileDelete(mErrorFile)
     175    ok = SysFileDelete(qOutFile)
     176    ok = SysFileDelete(qErrorFile)
     177end
     178else do
     179    if mRC <> 0 then do
     180        say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile
     181    end
     182    if qRC <> 0 then do
     183        say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile
     184    end
     185end
     186
     187exit 0
     188
     189qmake:
     190    sourceFile = sourceDir || '/qbittorrent.pro'
     191    address cmd 'qmake ' sourceFile ' 2>'qErrorFile' 1>'qOutFile
     192
     193    qRC = RC
     194    if qRC <> 0 then do
     195        call beep 880, 20
     196        say "Alarm! qmake RC="RC
     197    end
     198return
     199
     200make:
     201    makeparm = arg(1)
     202    address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile
     203    mRC = RC
     204    if mRC <> 0 then do
     205        call beep 880, 20
     206        say "Alarm! make RC="RC
     207    end
     208return
     209
     210
     211deleteall: /* delete installDir (including subdirs) except zip files */
     212
     213    say "Delete all files except *zip in " installDir
     214    ok = SysFileTree(installDir||'\*', rm.,'FOS')
     215    do i = 1 to rm.0
     216       if translate(right(rm.i, 3)) \== 'ZIP' then do
     217          ok = SysFileDelete(rm.i)
     218       end
     219    end
     220
     221    say "Delete zip file " zipFile
     222    ok = SysFileDelete(zipFile)
     223
     224    say "Removing subdirs from " || installDir
     225    ok = SysFileTree(installDir||'\*', rm.,'OS')
     226    do i = 1 to rm.0
     227       ok = SysRmDir(rm.i)
     228    end
     229
     230    call SysSleep(5)
     231return
     232
     233/**
     234 *  Fixes the directory path by a) converting all slashes to back
     235 *  slashes and b) ensuring that the trailing slash is present if
     236 *  the directory is the root directory, and absent otherwise.
     237 *
     238 *  @param dir      the directory path
     239 *  @param noslash
     240 *      optional argument. If 1, the path returned will not have a
     241 *      trailing slash anyway. Useful for concatenating it with a
     242 *      file name.
     243 */
     244FixDir: procedure expose (Globals)
     245    parse arg dir, noslash
     246    noslash = (noslash = 1)
     247    dir = translate(dir, '\', '/')
     248    if (right(dir, 1) == '\' &,
     249        (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then
     250        dir = substr(dir, 1, length(dir) - 1)
     251    return dir
     252
     253/**
     254 *  reads the version.cpp and gets the Qbittorrent version from there
     255 */
     256version: procedure expose Qbittorrent_version Qbittorrent_build srcDir
     257
     258    QbittorrentVer = ' '
     259    /* Qbittorrent Version file */
     260    Version = srcDir || "\version.pri"
     261
     262    do until lines(Version) = 0
     263        verline = linein(Version)
     264        if substr(Verline,1,15) = "PROJECT_VERSION" then do
     265            parse var verline . ' '. ' ' QbittorrentVer
     266        end
     267    end
     268
     269    ok = stream(Version,'c','close')
     270    if QbittorrentVer \== ' ' then do
     271        QbittorrentVer = strip(QbittorrentVer,,'"')
     272        parse var QbittorrentVer ver '.' maj '.' min '.' Qbittorrent_build
     273        Qbittorrent_version = ver || '.'|| maj || '.' || min
     274    end
     275
     276    if Qbittorrent_build == '' then do
     277        Qbittorrent_build = 'GA'
     278    end
     279
     280    return
     281
     282help:
     283    say "Parameters:"
     284    say "    make"
     285    say "    make debug"
     286    say "    make clean"
     287    say "    install build (build overwrites what this script finds)"
     288    say "    uninstall"
     289    say "    diff (creates a diff from vendor to trunk)"
     290exit 255
  • E:\trees\qbittorrent\trunk

    diff -Naur -x '*.qm' -x geoip.dat -x conf.pri E:\trees\qbittorrent\trunk\..\vendor\current/install.os2 E:\trees\qbittorrent\trunk/install.os2
    old new  
    1 QBittorrent installation
     1QBittorrent _VERSION_ _BUILD_ installation
    22
    33
    44
     
    23231. INTRODUCTION
    2424===============
    2525
    26 Welcome to QBittorrent port for OS/2 and eComStation.
     26Welcome to QBittorrent _VERSION_ _BUILD_ port for OS/2 and eComStation.
    2727
    2828
    29292. REQUIREMENTS
     
    5151GCC4Core
    5252--------
    5353
    54   1. yum install libgcc
     54  1. yum install libgcc4*
    5555  2. yum install gcc-stack-protector
    5656  3. yum install gcc-stdc++-shared-library
    5757  4. yum install gcc-supc++-shared-library
     
    123123
    124124Thanks go to:
    125125
    126   * Dmitry A. Kuminov
     126  * Dmitriy Kuminov
    127127
    128128They either helped me when I had some nasty questions or did some testing for
    129129me.
     
    1461467. HISTORY
    147147==========
    148148
     1492014-02-18
     150
     151  * updated to 3.1.8 code level of QBittorrent
     152
     1532013-11-12
     154
     155  * updated to 3.1.2 code level of QBittorrent
     156  * updated to libtorrent 0.16.12 level
     157
     1582013-08-14
     159
     160  * updated to 3.0.11 code level of QBittorrent
     161  * updated to libtorrent 0.16.9 level
     162
    1491632012-09-19
    150164
    151165  * updated to 3.0.4 code level of QBittorrent
  • E:\trees\qbittorrent\trunk

    diff -Naur -x '*.qm' -x geoip.dat -x conf.pri E:\trees\qbittorrent\trunk\..\vendor\current/os2conf.pri E:\trees\qbittorrent\trunk/os2conf.pri
    old new  
    77        -lboost_thread \
    88        -lboost_system \
    99        -lboost_filesystem \
    10         -lssl -lcrypto -lidn -lpthread -lz
     10        -lssl -lcrypto -lpthread -lz
    1111
    1212RC_FILE = qbittorrent_os2.rc
    1313
Note: See TracBrowser for help on using the repository browser.