Ticket #4952: win32-packager-spelling.patch

File win32-packager-spelling.patch, 10.8 KB (added by Jeff Black <jmblack256@…>, 12 years ago)
  • contrib/Win32/build/win32-packager.pl

     
    2727
    2828$| = 1; # autoflush stdout;
    2929
    30 # this scipt 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.
    3131#my $SVNRELEASE = '15528'; #builds and runs with 3x patches commented out below
    3232#my $SVNRELEASE = '15586'; # builds and runs without patches except backend.gz
    3333my $SVNRELEASE = '15699'; # latest build that seemed to run without any additional patches, YMMV.
     
    3939                                                   # mirror of SF's choosing,
    4040                                                   # hopefully close to you
    4141# alternatively you can choose your own mirror:
    42 #my $sourceforge = 'optusnet.dl.sourceforge.net';  # australia
     42#my $sourceforge = 'optusnet.dl.sourceforge.net';  # Australia
    4343#my $sourceforge = 'internap.dl.sourceforge.net';  # USA,California
    4444#my $sourceforge = 'easynews.dl.sourceforge.net';  # USA,Arizona,Phoenix,
    4545#my $sourceforge = 'jaist.dl.sourceforge.net';     # Japan
     
    157157
    158158
    159159[ 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?
    161161
    162162[ archive => $sources.'MSYS-1.0.10.exe', 'fetch' => 'http://'.$sourceforge.'/sourceforge/mingw/MSYS-1.0.10.exe',comment => 'Get the MSYS and addons:' ] ,
    163163[ 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' ] ,
     
    194194
    195195
    196196# (alternate would be from the gnuwin32 project, which is actually from same source)
    197 #  run it into a 'unzip' folder, becuase it doesn't extract to a folder:
     197#  run it into a 'unzip' folder, because it doesn't extract to a folder:
    198198[ dir => $sources."unzip" ,  mkdirs => $sources.'unzip',comment => 'unzip.exe - Get a precompiled native Win32 version from InfoZip' ],
    199199[ archive => $sources.'unzip/unz552xN.exe',  fetch => 'ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/WIN32/unz552xN.exe'],
    200200[ file => $sources.'unzip/unzip.exe', exec => 'chdir '.$dossources.'unzip && '.$dossources.'unzip/unz552xN.exe' ],
     
    291291
    292292
    293293#----------------------------------------
    294 # now we do each of the source library dependancies in turn: download,extract,build/install
     294# now we do each of the source library dependencies in turn: download,extract,build/install
    295295# TODO - ( and just prey that they all work?)  These should really be more detailed, and actually check that we got it installed properly.
    296296
    297297# Most of these look for a Makefile as a sign that the ./configure was successful (not necessarily true, but it's a start)
     
    484484# is svn num (ie file contents) changed since last run, if so, do a 'make clean' (overkill, I know, but safer)!
    485485[ 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)' ],
    486486
    487 # apply any outstanding win32 patches - this section will be hard to keep upwith HEAD/SVN:
     487# apply any outstanding win32 patches - this section will be hard to keep up with HEAD/SVN:
    488488
    489489# 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 upwith 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'],
    491491#[ filesame => [$mythtv.'mythtv/backend.patch.gz',$sources."backend.patch.gz"], copy => [''=>'',comment => '4392: - backend connections being accepted patch '] ],
    492492#[ 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"] ],
    493493
    494494# 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 upwith 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'],
    496496#[ filesame => [$mythtv.'mythtv/importicons_windows_2.diff',$sources."importicons_windows_2.diff"], copy => [''=>'',comment => '3334 fixes error with mkdir() unknown.'] ],
    497497#
    498498#[ 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 upwith 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'],
    500500#[ filesame => [$mythtv.'mythtv/mingw.patch',$sources."mingw.patch"], copy => [''=>'',comment => '4516 fixes build'] ],
    501501#[ grep => ['LIBS \+= -lmyth-\$\$LIBVERSION',$mythtv.'mythtv/libs/libmythui/libmythui.pro'], shell => ["cd ".$unixmythtv."mythtv/","patch -p0 < mingw.patch"] ]
    502502#
    503503# (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 upwith 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'],
    505505#[ filesame => [$mythtv.'mythtv/util_win32.patch',$sources."util_win32.patch"], copy => [''=>'',comment => '4497 fixes build'] ],
    506506#[ grep => ['\#include "compat.h"',$mythtv.'mythtv/libs/libmyth/util.h'], shell => ["cd ".$unixmythtv."mythtv/libs/libmyth/","patch -p0 < ".$unixmythtv."mythtv/util_win32.patch"] ],
    507507
    508508# 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 upwith 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'],
    510510#[ 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, equivalemnt 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 .'],
    512512
    513513
    514514[ 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'],
     
    536536
    537537# install some themes? does a 'make install' do that adequately (no, not if running outside msys)?
    538538# copy the basic themes somewhere that mythtv can get at it.
    539 # TODO this should really be independant 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?
    540540[ 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.' ],
    541541
    542542#
     
    544544'#!/bin/bash
    545545source '.$unixmythtv.'qt_env.sh
    546546cd '.$unixmythtv.'mythtv
    547 # keep around just one earlier verion in run_old:
     547# keep around just one earlier version in run_old:
    548548rm -rf run_old
    549549mv run run_old
    550550mkdir run
     
    670670
    671671sub _end {
    672672       
    673         comment("This verson 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");
    674674
    675675print << 'END';   
    676676#
     
    685685
    686686#------------------------------------------------------------------------------
    687687
    688 # this is the mainloop that itterates 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:
    689689# cause:
    690690foreach my $dep ( @{$expect} ) {
    691691    my @dep = @{$dep};
     
    10351035
    10361036sub perl2unix  {
    10371037    my $p = shift;
    1038     $p =~ s#$msys#/#i;  # remove superflouus msys folders if they are there
     1038    $p =~ s#$msys#/#i;  # remove superfluous msys folders if they are there
    10391039    $p =~ s#^([CD]):#/$1#ig;  #change c:/ into /c  (or a D:)   so c:/msys becomes /c/msys etc.
    10401040    $p =~ s#//#/#ig; # reduce any double forward slashes to single ones.
    10411041    return $p;