source:
diffs/qbittorrent_3.1.2_GA.diff@
172
Last change on this file since 172 was 150, checked in by , 12 years ago | |
---|---|
File size: 9.5 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) */ 6 version = "0.1.0" 7 version_date = "26.11.2013" 8 '@echo off' 9 10 parse arg command option 11 parse source . . scriptFile 12 13 /* init the required vars */ 14 qRC = 0 15 mRC = 0 16 buildDir = strip(directory(),'T','\') /* Make sure we have no trailing backslash */ 17 sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile)) 18 vendorDir = sourceDir || '\..\vendor\current' 19 diffDir = sourceDir || '\..\' 20 srcDir = sourceDir 21 OS2Dir = sourceDir 22 installDir = buildDir || '\install' 23 qErrorFile = buildDir||'\qmake.err' 24 qOutFile = buildDir||'\qmake.out' 25 mErrorFile = buildDir||'\make.err' 26 mOutFile = buildDir||'\make.out' 27 28 /* get the Qbittorrent version */ 29 Qbittorrent_version = '0.0.0' 30 Qbittorrent_build = ' ' 31 call version 32 internal_build = translate(Qbittorrent_version, '_', '.') 33 34 title = "QBittorrent for eCS (OS/2) build script v" || version || " from " || version_date 35 say title 36 say 37 say "Build directory :" buildDir 38 say "Source directory :" sourceDir 39 say 40 say "QBittorrent version :" Qbittorrent_version 41 say " build :" Qbittorrent_build 42 say 43 44 /* translate command to all upercase */ 45 command = translate(command) 46 47 if command = "" then signal help 48 49 50 if 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 62 end 63 64 /* now we translate also the option */ 65 option = translate(option) 66 67 if sourceDir \== buildDir then do 68 say "Shadow build in progress ..." 69 say 70 end 71 72 say "Executing command: "command option 73 74 select 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 167 end 168 169 /* cleanup the mess */ 170 error: 171 172 if qRC = 0 & mRC = 0 then do 173 ok = SysFileDelete(mOutFile) 174 ok = SysFileDelete(mErrorFile) 175 ok = SysFileDelete(qOutFile) 176 ok = SysFileDelete(qErrorFile) 177 end 178 else 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 185 end 186 187 exit 0 188 189 qmake: 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 198 return 199 200 make: 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 208 return 209 210 211 deleteall: /* 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) 231 return 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 */ 244 FixDir: 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 */ 256 version: 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 282 help: 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)" 290 exit 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 installation1 QBittorrent _VERSION_ _BUILD_ installation 2 2 3 3 4 4 … … 23 23 1. INTRODUCTION 24 24 =============== 25 25 26 Welcome to QBittorrent port for OS/2 and eComStation.26 Welcome to QBittorrent _VERSION_ _BUILD_ port for OS/2 and eComStation. 27 27 28 28 29 29 2. REQUIREMENTS … … 123 123 124 124 Thanks go to: 125 125 126 * Dmitr y A.Kuminov126 * Dmitriy Kuminov 127 127 128 128 They either helped me when I had some nasty questions or did some testing for 129 129 me. … … 146 146 7. HISTORY 147 147 ========== 148 148 149 2013-11-12 150 151 * updated to 3.1.2 code level of QBittorrent 152 * updated to libtorrent 0.16.12 level 153 154 2013-08-14 155 156 * updated to 3.0.11 code level of QBittorrent 157 * updated to libtorrent 0.16.9 level 158 149 159 2012-09-19 150 160 151 161 * 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 7 7 -lboost_thread \ 8 8 -lboost_system \ 9 9 -lboost_filesystem \ 10 -lssl -lcrypto -l idn -lpthread -lz10 -lssl -lcrypto -lpthread -lz 11 11 12 12 RC_FILE = qbittorrent_os2.rc 13 13
Note:
See TracBrowser
for help on using the repository browser.