Ticket #4952: win32-packager-spelling.patch
File win32-packager-spelling.patch, 10.8 KB (added by , 16 years ago) |
---|
-
contrib/Win32/build/win32-packager.pl
27 27 28 28 $| = 1; # autoflush stdout; 29 29 30 # this sc ipt was last tested to work with this version, on other versions YMMV.30 # this script was last tested to work with this version, on other versions YMMV. 31 31 #my $SVNRELEASE = '15528'; #builds and runs with 3x patches commented out below 32 32 #my $SVNRELEASE = '15586'; # builds and runs without patches except backend.gz 33 33 my $SVNRELEASE = '15699'; # latest build that seemed to run without any additional patches, YMMV. … … 39 39 # mirror of SF's choosing, 40 40 # hopefully close to you 41 41 # alternatively you can choose your own mirror: 42 #my $sourceforge = 'optusnet.dl.sourceforge.net'; # australia42 #my $sourceforge = 'optusnet.dl.sourceforge.net'; # Australia 43 43 #my $sourceforge = 'internap.dl.sourceforge.net'; # USA,California 44 44 #my $sourceforge = 'easynews.dl.sourceforge.net'; # USA,Arizona,Phoenix, 45 45 #my $sourceforge = 'jaist.dl.sourceforge.net'; # Japan … … 157 157 158 158 159 159 [ dir => $mingw, exec => $dossources.'MinGW-5.1.3.exe',comment => 'install MinGW (be sure to install g++, g77 and ming make too) - it will require user interaction, but once completed, will return control to us....' ], # interactive, supposed to install g++ and ming make too, but people forget to select them? 160 [ file => $mingw."bin/gcc.exe", exec => $dossources.'MinGW-5.1.3.exe',comment => 'unable to gind a gcc.exe where expected, rerunning MinGW installer!' ], # interactive, supposed to install g++ and ming make too, but people forget to select them?160 [ file => $mingw."bin/gcc.exe", exec => $dossources.'MinGW-5.1.3.exe',comment => 'unable to find a gcc.exe where expected, rerunning MinGW installer!' ], # interactive, supposed to install g++ and ming make too, but people forget to select them? 161 161 162 162 [ archive => $sources.'MSYS-1.0.10.exe', 'fetch' => 'http://'.$sourceforge.'/sourceforge/mingw/MSYS-1.0.10.exe',comment => 'Get the MSYS and addons:' ] , 163 163 [ archive => $sources.'bash-3.1-MSYS-1.0.11-1.tar.bz2', 'fetch' => 'http://'.$sourceforge.'/sourceforge/mingw/bash-3.1-MSYS-1.0.11-1.tar.bz2' ] , … … 194 194 195 195 196 196 # (alternate would be from the gnuwin32 project, which is actually from same source) 197 # run it into a 'unzip' folder, bec uase it doesn't extract to a folder:197 # run it into a 'unzip' folder, because it doesn't extract to a folder: 198 198 [ dir => $sources."unzip" , mkdirs => $sources.'unzip',comment => 'unzip.exe - Get a precompiled native Win32 version from InfoZip' ], 199 199 [ archive => $sources.'unzip/unz552xN.exe', fetch => 'ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/WIN32/unz552xN.exe'], 200 200 [ file => $sources.'unzip/unzip.exe', exec => 'chdir '.$dossources.'unzip && '.$dossources.'unzip/unz552xN.exe' ], … … 291 291 292 292 293 293 #---------------------------------------- 294 # now we do each of the source library depend ancies in turn: download,extract,build/install294 # now we do each of the source library dependencies in turn: download,extract,build/install 295 295 # TODO - ( and just prey that they all work?) These should really be more detailed, and actually check that we got it installed properly. 296 296 297 297 # Most of these look for a Makefile as a sign that the ./configure was successful (not necessarily true, but it's a start) … … 484 484 # is svn num (ie file contents) changed since last run, if so, do a 'make clean' (overkill, I know, but safer)! 485 485 [ filesame => [$mythtv.'mythtv\svn_info.txt',$mythtv.'mythtv\svn_info.new'], shell => ['touch '.$unixmythtv.'mythtv/last_build.txt','cat '.$unixmythtv.'mythtv/svn_info.new >'.$unixmythtv.'mythtv/svn_info.txt','touch -r '.$unixmythtv.'mythtv/svn_info.txt '.$unixmythtv.'mythtv/svn_info.new'], comment => 'if the SVN number is changed, then remember that, AND arrange for a full re-make of mythtv. (overkill, I know, but safer)' ], 486 486 487 # apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN:487 # apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN: 488 488 489 489 # 15586 and earlier need this patch: 490 #[ archive => $sources.'backend.patch.gz' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4392/backend.patch.gz', comment => 'backend.patch.gz - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'],490 #[ archive => $sources.'backend.patch.gz' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4392/backend.patch.gz', comment => 'backend.patch.gz - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'], 491 491 #[ filesame => [$mythtv.'mythtv/backend.patch.gz',$sources."backend.patch.gz"], copy => [''=>'',comment => '4392: - backend connections being accepted patch '] ], 492 492 #[ grep => ['unsigned\* Indexes = new unsigned\[n\]\;',$mythtv.'mythtv/libs/libmyth/mythsocket.cpp'], shell => ["cd ".$unixmythtv."mythtv/","gunzip -f backend.patch.gz","patch -p0 < backend.patch"] ], 493 493 494 494 # these next 3 patches are needed for 15528 (and earlier) 495 #[ archive => $sources.'importicons_windows_2.diff' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/3334/importicons_windows_2.diff', comment => 'importicons_windows_2.diff - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'],495 #[ archive => $sources.'importicons_windows_2.diff' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/3334/importicons_windows_2.diff', comment => 'importicons_windows_2.diff - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'], 496 496 #[ filesame => [$mythtv.'mythtv/importicons_windows_2.diff',$sources."importicons_windows_2.diff"], copy => [''=>'',comment => '3334 fixes error with mkdir() unknown.'] ], 497 497 # 498 498 #[ grep => ['\#include <qdir\.h>',$mythtv.'mythtv/libs/libmythtv/importicons.cpp'], shell => ["cd ".$unixmythtv."mythtv/","patch -p0 < importicons_windows_2.diff"] ], 499 #[ archive => $sources.'mingw.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4516/mingw.patch', comment => 'mingw.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'],499 #[ archive => $sources.'mingw.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4516/mingw.patch', comment => 'mingw.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'], 500 500 #[ filesame => [$mythtv.'mythtv/mingw.patch',$sources."mingw.patch"], copy => [''=>'',comment => '4516 fixes build'] ], 501 501 #[ grep => ['LIBS \+= -lmyth-\$\$LIBVERSION',$mythtv.'mythtv/libs/libmythui/libmythui.pro'], shell => ["cd ".$unixmythtv."mythtv/","patch -p0 < mingw.patch"] ] 502 502 # 503 503 # (fixed in 15547) 504 #[ archive => $sources.'util_win32.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4497/util_win32.patch', comment => 'util_win32.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'],504 #[ archive => $sources.'util_win32.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/4497/util_win32.patch', comment => 'util_win32.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'], 505 505 #[ filesame => [$mythtv.'mythtv/util_win32.patch',$sources."util_win32.patch"], copy => [''=>'',comment => '4497 fixes build'] ], 506 506 #[ grep => ['\#include "compat.h"',$mythtv.'mythtv/libs/libmyth/util.h'], shell => ["cd ".$unixmythtv."mythtv/libs/libmyth/","patch -p0 < ".$unixmythtv."mythtv/util_win32.patch"] ], 507 507 508 508 # post 15528, pre 15568 needs this: equivalent to: svn merge -r 15541:15540 . 509 #[ archive => $sources.'15541_undo.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/XXXX/15541_undo.patch', comment => 'util_win32.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'],509 #[ archive => $sources.'15541_undo.patch' , 'fetch' => 'http://svn.mythtv.org/trac/raw-attachment/ticket/XXXX/15541_undo.patch', comment => 'util_win32.patch - apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN'], 510 510 #[ filesame => [$mythtv.'mythtv/15541_undo.patch',$sources."15541_undo.patch"], copy => [''=>'',comment => 'XXXX'] ], 511 #[ grep => ['\#include \"compat.h\"',$mythtv.'mythtv/libs/libmythui/mythpainter.cpp'], shell => ["cd ".$unixmythtv."mythtv/libs/libmyth/","patch -p2 < ".$unixmythtv."mythtv/15541_undo.patch"] , comment => 'currently need this patch too, equivale mnt of: svn merge -r 15541:15540 .'],511 #[ grep => ['\#include \"compat.h\"',$mythtv.'mythtv/libs/libmythui/mythpainter.cpp'], shell => ["cd ".$unixmythtv."mythtv/libs/libmyth/","patch -p2 < ".$unixmythtv."mythtv/15541_undo.patch"] , comment => 'currently need this patch too, equivalent of: svn merge -r 15541:15540 .'], 512 512 513 513 514 514 [ file => $mythtv.'mythtv/config/config.pro', shell => ['touch '.$unixmythtv.'mythtv/config/config.pro'], comment => 'create an empty config.pro or the mythtv build will fail'], … … 536 536 537 537 # install some themes? does a 'make install' do that adequately (no, not if running outside msys)? 538 538 # copy the basic themes somewhere that mythtv can get at it. 539 # TODO this should really be independ ant of the msys folders, but it's not at present?539 # TODO this should really be independent of the msys folders, but it's not at present? 540 540 [ dir => $msys.'share\mythtv\themes\G.A.N.T', shell => ['mkdir /usr/share/mythtv','mkdir /usr/share/mythtv/themes','cp -r /c/mythtv/mythtv/themes/* /usr/share/mythtv/themes/'], comment => 'copy the basic themes somewhere that mythtv can get at it.' ], 541 541 542 542 # … … 544 544 '#!/bin/bash 545 545 source '.$unixmythtv.'qt_env.sh 546 546 cd '.$unixmythtv.'mythtv 547 # keep around just one earlier ver ion in run_old:547 # keep around just one earlier version in run_old: 548 548 rm -rf run_old 549 549 mv run run_old 550 550 mkdir run … … 670 670 671 671 sub _end { 672 672 673 comment("This vers on of the Win32 Build script last was last tested on: $SVNRELEASE");673 comment("This version of the Win32 Build script last was last tested on: $SVNRELEASE"); 674 674 675 675 print << 'END'; 676 676 # … … 685 685 686 686 #------------------------------------------------------------------------------ 687 687 688 # this is the mainloop that it terates over the above definitions and determines what to do:688 # this is the mainloop that iterates over the above definitions and determines what to do: 689 689 # cause: 690 690 foreach my $dep ( @{$expect} ) { 691 691 my @dep = @{$dep}; … … 1035 1035 1036 1036 sub perl2unix { 1037 1037 my $p = shift; 1038 $p =~ s#$msys#/#i; # remove superfl ouus msys folders if they are there1038 $p =~ s#$msys#/#i; # remove superfluous msys folders if they are there 1039 1039 $p =~ s#^([CD]):#/$1#ig; #change c:/ into /c (or a D:) so c:/msys becomes /c/msys etc. 1040 1040 $p =~ s#//#/#ig; # reduce any double forward slashes to single ones. 1041 1041 return $p;