source:
diffs/0.4.6_GA.diff@
146
Last change on this file since 146 was 146, checked in by , 12 years ago | |
---|---|
File size: 19.0 KB |
-
E:\trees\qpdfview\trunk
diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/build_os2.cmd E:\trees\qpdfview\trunk/build_os2.cmd
old new 1 /* qpdfview Build Script */ 2 /* version history */ 3 /* version 0.1.0 from 25.03.2013 Silvan (first edition) */ 4 /* version 0.1.1 from 25.04.2013 Silvan (new poppler lib) */ 5 /* version 0.1.2 from 29.05.2013 Silvan (application version from qpdfview.pri) */ 6 /* version 0.1.3 from 17.06.2013 Silvan (added .ps support) */ 7 /* version 0.1.4 from 08.08.2013 Silvan (new poppler lib) */ 8 /* version 0.1.5 from 20.08.2013 Silvan (added diff option) */ 9 /* version 0.1.6 from 15.10.2013 Silvan (copy all help*.html) */ 10 11 /* init the version string (don't forget to change) */ 12 version = "0.1.6" 13 version_date = "15.10.2013" 14 popplerDll = 'popp43.dll' 15 popplerDllQt = 'poppqt44.dll' 16 popplerDir = 'e:\trees\poppler\trunk' 17 '@echo off' 18 19 parse arg command option 20 parse source . . scriptFile 21 22 /* init the required vars */ 23 qRC = 0 24 mRC = 0 25 buildDir = strip(directory(),'T','\') /* Make sure we have no trailing backslash */ 26 sourceDir = FixDir(filespec('D', scriptFile) || filespec('P', scriptFile)) 27 vendorDir = sourceDir || '\..\vendor\current' 28 diffDir = sourceDir || '\..\' 29 srcDir = sourceDir 30 OS2Dir = sourceDir 31 installDir = buildDir || '\install' 32 installDirT= installDir || '\data' 33 qErrorFile = buildDir||'\qmake.err' 34 qOutFile = buildDir||'\qmake.out' 35 mErrorFile = buildDir||'\make.err' 36 mOutFile = buildDir||'\make.out' 37 38 /* get the Qpdfview version */ 39 Qpdfview_version = '0.0.0' 40 Qpdfview_build = ' ' 41 call version 42 internal_build = translate(Qpdfview_version, '_', '.') 43 44 title = "Qpdfview for eCS (OS/2) build script v" || version || " from " || version_date 45 say title 46 say 47 say "Build directory:" buildDir 48 say "Source directory:" sourceDir 49 say 50 say "Qpdfview version:" Qpdfview_version 51 say " build: " Qpdfview_build 52 say 53 54 /* translate command to all upercase */ 55 command = translate(command) 56 57 if command = "" then signal help 58 59 60 if command = "INSTALL" then do 61 if option \== "" then do 62 Qpdfview_build = option 63 end 64 select 65 when Qpdfview_build \== "" then do 66 zipFile = installDir || '\qpdfview-' || internal_build || '-' || Qpdfview_build || '.zip' 67 end 68 otherwise do 69 signal help 70 end 71 end 72 end 73 74 /* now we translate also the option */ 75 option = translate(option) 76 77 if sourceDir \== buildDir then do 78 say "Shadow build in progress ..." 79 say 80 end 81 82 say "Executing command: "command option 83 84 select 85 when command = "MAKE" & option = "CLEAN" then do 86 87 say "cleaning the tree" 88 call make 'distclean' 89 90 say "please execute this script again with 'make' to build Qpdfview" 91 92 end 93 when command = "MAKE" then do 94 95 say "creating Qpdfview makefile" 96 call qmake 97 98 if qRC = 0 then do 99 say "building Qpdfview" 100 if option = "" then do 101 call make 102 end 103 else do 104 call make 'debug' 105 end 106 end 107 108 end 109 110 when command = "INSTALL" then do 111 112 /* first delete everything */ 113 call deleteall 114 115 /* create the installDir,and the translation subdir */ 116 ok = SysMkDir(installDir) 117 ok = SysMkDir(installDirT) 118 119 /* copy the exe */ 120 ok = SysCopyObject(buildDir||'\Qpdfview.exe',installDir) 121 122 /* copy all dll */ 123 ok = SysFileTree(buildDir||'\*.dll', rm.,'FOS') 124 do i = 1 to rm.0 125 ok = SysCopyObject(rm.i, installDir) 126 end 127 128 /* copy the readme */ 129 rm.0 = 1 130 rm.1 = 'install.os2' 131 do i = 1 to rm.0 132 cmdtorun = 'sed "s;_VERSION_;' || Qpdfview_version || ';g" ' || os2Dir || '\' || rm.i || ' | sed "s;_BUILD_;' || Qpdfview_build || ';g" >' || installDir || '\' || rm.i 133 address cmd cmdtorun 134 end 135 136 /* copy different stuff */ 137 rm.0 = 5 138 rm.1 = 'CHANGES' 139 frmDir.1 = os2Dir 140 toDir.1 = installDir 141 rm.2 = 'help*.html' 142 frmDir.2 = os2Dir || '\miscellaneous' 143 toDir.2 = installDirT 144 rm.3 = popplerDll 145 frmDir.3 = popplerDir || '\poppler\.libs' 146 toDir.3 = installDir 147 rm.4 = popplerDllQt 148 frmDir.4 = popplerDir || '\qt4\src\.libs' 149 toDir.4 = installDir 150 rm.5 = 'tiff.dll' 151 frmDir.5 = 'e:\trees\libtiff\trunk\libtiff\.libs' 152 toDir.5 = installDir 153 do i = 1 to rm.0 154 cmdtorun = 'copy ' || frmDir.i || '\' || rm.i || ' ' || toDir.i 155 address cmd cmdtorun 156 end 157 158 /* create the qm files from ts files */ 159 ok = SysFileTree(srcDir||'\translations\*.ts', rm.,'FO') 160 do i = 1 to rm.0 161 fileName = filespec('N',rm.i) 162 fileName = left(fileName,lastpos('.', fileName)-1) || '.qm' 163 cmdtorun = 'lrelease ' || rm.i || ' -qm ' || installDirT || '\' || fileName 164 address cmd cmdtorun 165 end 166 167 /* zip all dynamic stuff */ 168 ok = directory(installDir) 169 cmdtorun = 'zip -r ' || zipFile || ' * -x *.zip' 170 address cmd cmdtorun 171 ok = directory(buildDir) 172 173 /* zip all icons */ 174 175 end 176 177 when command = "UNINSTALL" then do 178 179 call deleteall 180 181 end 182 183 when command = "DIFF" then do 184 185 address cmd 'diff -Naur ' || vendorDir || ' ' || sourceDir || ' -x qpdfview.desktop > ' || diffDir || Qpdfview_version || '_' || Qpdfview_build || '.diff' 186 187 end 188 189 otherwise do 190 say 'Unknown parameter "'command'" - aborting...' 191 exit 1 192 end 193 end 194 195 /* cleanup the mess */ 196 error: 197 198 if qRC = 0 & mRC = 0 then do 199 ok = SysFileDelete(mOutFile) 200 ok = SysFileDelete(mErrorFile) 201 ok = SysFileDelete(qOutFile) 202 ok = SysFileDelete(qErrorFile) 203 end 204 else do 205 if mRC <> 0 then do 206 say "Alarm! Make errors occured! Look at "mOutFile" and "mErrorFile 207 end 208 if qRC <> 0 then do 209 say "Alarm! qMake errors occured! Look at "qOutFile" and "qErrorFile 210 end 211 end 212 213 exit 0 214 215 qmake: 216 sourceFile = sourceDir || '/qpdfview.pro' 217 address cmd 'qmake "CONFIG+=without_pkgconfig" "CONFIG+=without_dbus" "CONFIG+=without_magic" ' sourceFile ' 2>'qErrorFile' 1>'qOutFile 218 219 qRC = RC 220 if qRC <> 0 then do 221 call beep 880, 20 222 say "Alarm! qmake RC="RC 223 end 224 return 225 226 make: 227 makeparm = arg(1) 228 address cmd 'make 'makeparm' 2>'mErrorFile' 1>'mOutFile 229 mRC = RC 230 if mRC <> 0 then do 231 call beep 880, 20 232 say "Alarm! make RC="RC 233 end 234 return 235 236 237 deleteall: /* delete installDir (including subdirs) except zip files */ 238 239 say "Delete all files except *zip in " installDir 240 ok = SysFileTree(installDir||'\*', rm.,'FOS') 241 do i = 1 to rm.0 242 if translate(right(rm.i, 3)) \== 'ZIP' then do 243 ok = SysFileDelete(rm.i) 244 end 245 end 246 247 say "Delete zip file " zipFile 248 ok = SysFileDelete(zipFile) 249 250 say "Removing subdirs from " || installDir 251 ok = SysFileTree(installDir||'\*', rm.,'OS') 252 do i = 1 to rm.0 253 ok = SysRmDir(rm.i) 254 end 255 256 call SysSleep(5) 257 return 258 259 /** 260 * Fixes the directory path by a) converting all slashes to back 261 * slashes and b) ensuring that the trailing slash is present if 262 * the directory is the root directory, and absent otherwise. 263 * 264 * @param dir the directory path 265 * @param noslash 266 * optional argument. If 1, the path returned will not have a 267 * trailing slash anyway. Useful for concatenating it with a 268 * file name. 269 */ 270 FixDir: procedure expose (Globals) 271 parse arg dir, noslash 272 noslash = (noslash = 1) 273 dir = translate(dir, '\', '/') 274 if (right(dir, 1) == '\' &, 275 (noslash | \(length(dir) == 3 & (substr(dir, 2, 1) == ':')))) then 276 dir = substr(dir, 1, length(dir) - 1) 277 return dir 278 279 /** 280 * reads the version.cpp and gets the Qpdfview version from there 281 */ 282 version: procedure expose Qpdfview_version Qpdfview_build srcDir 283 284 QpdfviewVer = ' ' 285 /* Qpdfview Version file */ 286 Version = srcDir || "\qpdfview.pri" 287 288 do until lines(Version) = 0 289 verline = linein(Version) 290 if substr(Verline,30,19) = "APPLICATION_VERSION" then do 291 parse var verline . ' '. ' ' QpdfviewVer 292 end 293 end 294 295 ok = stream(Version,'c','close') 296 if QpdfviewVer \== ' ' then do 297 QpdfviewVer = strip(QpdfviewVer,,'"') 298 parse var QpdfviewVer ver '.' maj '.' min '.' Qpdfview_build 299 Qpdfview_version = ver || '.'|| maj || '.' || min 300 end 301 302 if Qpdfview_build == '' then do 303 Qpdfview_build = 'GA' 304 end 305 306 return 307 308 help: 309 say "Parameters:" 310 say " make" 311 say " make debug" 312 say " make clean" 313 say " install build (build overwrites what this script finds)" 314 say " uninstall" 315 say " diff (creates a diff from vendor to trunk)" 316 exit 255 -
E:\trees\qpdfview\trunk
diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/install.os2 E:\trees\qpdfview\trunk/install.os2
old new 1 Qpdfview _VERSION_ _BUILD_ installation 2 3 4 0. CONTENTS OF THIS FILE 5 ======================== 6 7 1. INTRODUCTION 8 9 2. REQUIREMENTS 10 11 3. INSTALLATION 12 13 4. BUGREPORTS 14 15 5. CREDITS 16 17 6. SUPPORT AND DONATIONS 18 19 7. HISTORY 20 21 22 1. INTRODUCTION 23 =============== 24 25 Welcome to Qpdfview _VERSION_ _BUILD_ port for OS/2 and eComStation. 26 27 28 2. REQUIREMENTS 29 =============== 30 31 The following requirements need to be installed. 32 33 34 2.1 kLIBC, GCC4Core, Qt4, Zlib, cups 35 ------------------------------------ 36 37 The installation of these products can be done either by RPM or ZIP files. 38 39 2.1.a RPM installation 40 ---------------------- 41 42 kLIBC 43 ----- 44 45 1. yum install libc 46 47 GCC4Core 48 -------- 49 50 1. yum install libgcc4* 51 2. yum install gcc-stack-protector 52 3. yum install gcc-stdc++-shared-library 53 4. yum install gcc-supc++-shared-library 54 55 Qt4 dll 56 ------- 57 58 1. yum install libqt4 59 2. Install the xsystray plugin as noted in the readme.os2 and also in 60 readme.xsystray 61 62 Zlib 63 ---- 64 65 1. yum install zlib 66 67 Jpeg 68 ---- 69 70 1. yum install libjpeg 71 72 djvulibre 73 --------- 74 75 not available as a rpm at this time of writing 76 77 cups 78 ---- 79 80 not available as a rpm at this time of writing 81 82 freetype/fontconfig 83 ------------------- 84 85 not available as a rpm at this time of writing 86 87 ghstscript 88 ---------- 89 90 not available as a rpm at this time of writing 91 92 pthread 93 ------- 94 95 1. yum install pthread 96 97 98 2.1.b ZIP Installation 99 ---------------------- 100 101 kLIBC 102 ----- 103 104 1. Download kLIBC 0.6.5 or better (see http://svn.netlabs.org/libc for more 105 information) 106 2. Install the files to your libpath eg x:\ecs\dll 107 108 GCC4Core 109 -------- 110 111 1. Download GCC4Core 1.2.1 or better from http://ftp.netlabs.org/pub/gcc 112 2. Install the files to your libpath eg. x:\ecs\dll 113 114 Qt4 dll 115 ------- 116 117 1. Download Qt4 4.7.3 or better (see http://svn.netlabs.org/qt4 for more 118 information) 119 2. Install the files according to the readme 120 3. Install the xsystray plugin as noted in the readme.os2 and also in 121 readme.xsystray 122 123 Zlib 124 ---- 125 126 1. Download zlib from http://rpm.netlabs.org/release/00/zip 127 2. Unpack and install z.dll to your libpath eg. x:\ecs\dll 128 129 Jpeg 130 ---- 131 132 1. Download jpeg from http://rpm.netlabs.org/release/00/zip 133 2. Unpack and install jpeg.dll to your libpath eg. x:\ecs\dll 134 135 djvulibre 136 --------- 137 138 1. Download djvulibre from ftp://ftp.netlabs.org/pub/unixos2/djvulibre-3_5_25.zip 139 2. Unpack and install djvu.dll to your libpath eg. x:\ecs\dll 140 141 cups 142 ---- 143 144 1. Go to eCUPS wiki to see how to install eCUPS (http://svn.netlabs.org/ecups) 145 2. Install eCUPS according to the above wiki 146 147 freetype/fontconfig 148 ------------------- 149 150 1. Download MZFNTCFGFT_RUNTIME as zip or wpi from 151 ftp://ftp.netlabs.org/incoming/mozilla 152 2. Unpack and install it to your libpath eg. x:\ecs\dll 153 154 ghostscript 155 ----------- 156 157 1. Download ghostscript as zip from ftp://ftp.netlabs.org/pub/unixos2/gs871os2.zip 158 2. Unpack and install the gsdll23.dll to your libpath eg. x:\ecs\dll 159 (note this ghostscript it right now not compatible with P. Smedley's port) 160 161 pthread 162 ------- 163 164 1. Download pthread from http://rpm.netlabs.org/release/00/zip 165 2. Unpack and install z.dll to your libpath eg. x:\ecs\dll 166 167 168 3. INSTALLATION 169 =============== 170 171 To install qpdfview, do the following: 172 173 1. Create a directory for qpdfview. 174 2. Extract the qpdfview package to the new directory. 175 3. Create a WPS object for qdpfview.exe. 176 4. Start qdpfview 177 5. Happy using it 178 6. If you want to use qpdfview from within a browser, you have to copy 179 popp*.dll and tiff.dll to the libpath eg. x:\ecs\dll 180 181 If you have tried to open a file and not all requirements have been there at 182 this try, Qt screwed his plugin cache. 183 To overcome that delete %HOME%/.config/Trolltech.ini. It will be created again 184 when a Qt app starts. 185 186 Optional: to have special fonts working you need poppler-data pack. 187 188 - extract the 4 directories from the package found on http://poppler.freedesktop.org 189 to your %unixroot%/usr/local/share/poppler or to the dir where lucide.exe is installed 190 - if you also want japanese fonts working, take care that the "Times New Roman WT J" font 191 is installed. This font is used as a fallback 192 193 194 4. BUGREPORTS 195 ============= 196 197 Please create bugreports at http://svn.netlabs.org/qtapps 198 Only bug reports with a reproducable bug are accepted. :-) 199 200 201 5. CREDITS 202 ========== 203 204 The port was done by: 205 206 Silvan Scherrer aka _diver 207 208 Thanks go to: 209 210 * Dmitriy Kuminov 211 212 They either helped me when I had some nasty questions or did some testing for 213 me. 214 215 216 6. SUPPORT AND DONATIONS 217 ======================== 218 219 qpdfview port is based on volunteer work. If you would like to support further 220 development, you can do so in one of the following ways: 221 222 223 * Donate to the Qt4 project: see qt.netlabs.org for more information 224 225 * Contribute to the project: Besides actual development, this also includes 226 maintaining the documentation and the project web site as well as help 227 for users. 228 229 230 7. HISTORY 231 ========== 232 233 2013-10-15 234 235 * udated to latest qpdfview 0.4.6 source 236 237 2013-08-14 238 239 * updated to latest qpdfview 0.4.4.99 source 240 * updated to latest poppler 0.24.0 241 242 2013-06-17 243 244 * added .ps and .eps file support 245 246 2013-05-27 247 248 * updated to latest qpdfview 0.4.3 source 249 250 2013-05-14 251 252 * updated to latest qpdfview 0.4.3 beta source 253 254 2013-04-25 255 256 * updated to latest poppler 0.22.3 257 258 2013-04-19 259 260 * updated to latest qpdfview 0.4.2 beta source 261 262 2013-03-25 263 264 * updated to latest qpdfview 0.4.1 source 265 266 2013-03-20 267 268 * updated to latest qpdfview 0.4.1 beta source 269 270 2013-02-19 271 272 * updated to latest qpdfview 0.4.0 source 273 274 2013-02-12 275 276 * updated to latest qpdfview 0.4.0 beta1 source 277 278 2013-02-06 279 280 * updated to latest qpdfview 0.3.7 source 281 282 2013-01-14 283 284 * updated to latest poppler 0.22.0 285 286 2012-12-13 287 288 * updated to latest qpdfview 0.3.7 beta 1 source 289 290 2012-11-27 291 292 * updated to latest qpdfview source 293 294 2012-10-29 295 296 * created install.os2 297 * updated qpdfview to contain a icon (thx Herwig) 298 299 2012-10-24 300 301 * first public port 302 303 -
E:\trees\qpdfview\trunk
diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/qpdfview_os2.pri E:\trees\qpdfview\trunk/qpdfview_os2.pri
old new 1 # define destdir 2 PLUGIN_DESTDIR = lib 3 4 # define the djvu part 5 DJVU_PLUGIN_LIBS += -Le:/trees/djvulibre/trunk/libdjvu/.libs 6 DJVU_PLUGIN_LIBS += djvulibre 7 DJVU_PLUGIN_INCLUDEPATH += e:/trees/djvulibre/trunk 8 DJVU_PLUGIN = qpdfdjvu 9 DJVU_PLUGIN_NAME = $$DJVU_PLUGIN".dll" 10 11 # define the poppler part 12 PDF_PLUGIN_DEFINES += HAS_POPPLER_14 HAS_POPPLER_18 HAS_POPPLER_20 HAS_POPPLER_22 HAS_POPPLER_24 13 PDF_PLUGIN_LIBS += -Le:/trees/poppler/trunk/qt4/src/.libs 14 PDF_PLUGIN_LIBS += popplerqt4 15 PDF_PLUGIN_INCLUDEPATH += e:/trees/poppler/trunk/qt4/src 16 PDF_PLUGIN = qpdfpdf 17 PDF_PLUGIN_NAME = $$PDF_PLUGIN".dll" 18 19 # define the ps part 20 PS_PLUGIN_LIBS += -Le:/trees/libspectre/trunk/libspectre/.libs -Le:/trees/ghostscript/trunk/gs8.71/bin 21 PS_PLUGIN_LIBS += spectre gs 22 PS_PLUGIN_INCLUDEPATH += e:/trees/libspectre/trunk 23 PS_PLUGIN = qpdfps 24 PS_PLUGIN_NAME = $$PS_PLUGIN".dll" 25 26 # define the cups part 27 CUPS_LIBS += cups 28 29 # define the vendor part 30 DEF_FILE_VENDOR = bww bitwise works GmbH 31 DEF_FILE_VERSION = $$APPLICATION_VERSION 32 DEF_FILE_DESCRIPTION = eCS (OS/2) port of qpdfview by Adam Reichold 33 34 -
synctex/synctex_parser_utils.c
diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.c E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.c
old new 57 57 #define SYNCTEX_WINDOWS 1 58 58 #endif 59 59 60 #if defined(__OS2__) 61 #define SYNCTEX_OS2 1 62 #endif 63 60 64 #ifdef _WIN32_WINNT_WINXP 61 65 #define SYNCTEX_RECENT_WINDOWS 1 62 66 #endif … … 121 125 last_component = next+1; 122 126 } 123 127 } 124 # if def SYNCTEX_WINDOWS128 # if defined(SYNCTEX_WINDOWS) || defined (SYNCTEX_OS2) 125 129 /* On Windows, the '\' is also a path separator. */ 126 130 while((next = strstr(last_component,"\\"))){ 127 131 last_component = next+1; … … 207 211 if(!strlen(name)) { 208 212 return synctex_NO; 209 213 } 210 # if SYNCTEX_WINDOWS214 # if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2) 211 215 if(strlen(name)>2) { 212 216 return (name[1]==':' && SYNCTEX_IS_PATH_SEPARATOR(name[2]))?synctex_YES:synctex_NO; 213 217 } -
synctex/synctex_parser_utils.h
diff -Naur -x qpdfview.desktop E:\trees\qpdfview\trunk\..\vendor\current/synctex/synctex_parser_utils.h E:\trees\qpdfview\trunk/synctex/synctex_parser_utils.h
old new 64 64 #define FALSE 0 65 65 #define TRUE !FALSE 66 66 67 # if _WIN3267 # if defined(_WIN32) || defined(__OS2__) 68 68 # define SYNCTEX_CASE_SENSITIVE_PATH FALSE 69 69 # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c) 70 70 # else … … 72 72 # define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c) 73 73 # endif 74 74 75 # if _WIN3275 # if defined(_WIN32) || defined(__OS2__) 76 76 # define SYNCTEX_IS_DOT(c) ('.' == c) 77 77 # else 78 78 # define SYNCTEX_IS_DOT(c) ('.' == c)
Note:
See TracBrowser
for help on using the repository browser.