Changeset 7440827a7f8064269e74394895ec0c6073778490

Show
Ignore:
Timestamp:
09/01/07 19:43:49 (10 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1188668629 +0000
git-parent:

[17acf7977fd1d5587140e686b62a62dce1e55dc9]

git-author:
Rafaël Carré <funman@videolan.org> 1188668629 +0000
Message:

qt4: Fix help dialog (again)
Uses builtin AUTHORS THANKS and COPYING files on every platform
Don't ship AUTHORS.txt and THANKS.txt on windows packages
COPYING.txt is kept since it's used in the nsis installer
Only show authors' name instead of the full AUTHORS file
Removes an empty line in THANKS to make it easier to parse without using endless pipes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    rdb74f67 r7440827  
    620620    cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-${VERSION}/" 
    621621 
    622     for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \ 
     622    for file in MAINTAINERS NEWS COPYING README ; \ 
    623623      do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \ 
    624624      unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done 
  • THANKS

    r7fd6e10 r7440827  
    11$Id$ 
    2  
    32VLC makes extensive use of the following persons' code: 
    43 
  • modules/gui/qt4/Modules.am

    r4070db3 r7440827  
    8383    mkdir -p -- dialogs 
    8484    echo "/* Automatically generated file - DO NOT EDIT */" > dialogs/about.hpp.tmp 
    85     echo "static const char psz_licence[] =" >> dialogs/about.hpp.tmp 
     85    echo "static const char psz_license[] =" >> dialogs/about.hpp.tmp 
    8686    cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp 
    8787    echo ";" >> dialogs/about.hpp.tmp 
    8888    echo "static const char psz_thanks[] =" >> dialogs/about.hpp.tmp 
    89     cat $(top_srcdir)/THANKS | grep -v '$$Id:' | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp 
     89    grep -v '$$Id:'  $(top_srcdir)/THANKS | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp 
    9090    echo ";" >> dialogs/about.hpp.tmp 
    9191    echo "static const char psz_authors[] =" >> dialogs/about.hpp.tmp 
    92     cat $(top_srcdir)/AUTHORS | grep -v '$$Id:' | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp 
     92    grep N: $(top_srcdir)/AUTHORS | cut -d" " -f 2- | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp 
    9393    echo ";" >> dialogs/about.hpp.tmp 
    9494    mv -f -- dialogs/about.hpp.tmp dialogs/about.hpp 
  • modules/gui/qt4/dialogs/help.cpp

    r923f538 r7440827  
    115115    /* GPL License */ 
    116116    QTextEdit *licenseEdit = new QTextEdit( this ); 
    117 #ifdef WIN32 
    118     QFile *licenseFile = new QFile( "COPYING.txt" ); 
    119     licenseFile->open( QIODevice::ReadOnly | QIODevice::Text ); 
    120     licenseEdit->setText( licenseFile->readAll().data() ); 
    121     licenseFile->close(); 
    122 #else 
    123     char *psz_license = LICENCE; 
    124117    licenseEdit->setText( qfu( psz_license ) ); 
    125 #endif 
    126118    licenseEdit->setReadOnly( true ); 
    127119 
     
    137129    thanksLayout->addWidget( thanksLabel ); 
    138130    QTextEdit *thanksEdit = new QTextEdit( this ); 
    139 #ifdef WIN32 
    140     QFile *thanksFile = new QFile( "THANKS.txt" ); 
    141     thanksFile->open( QIODevice::ReadOnly | QIODevice::Text ); 
    142     thanksEdit->setText( thanksFile->readAll().data() ); 
    143     thanksFile->close(); 
    144 #else 
    145     char *psz_thanks = THANKS; 
    146131    thanksEdit->setText( qfu( psz_thanks ) ); 
    147 #endif 
    148132    thanksEdit->setReadOnly( true ); 
    149133    thanksLayout->addWidget( thanksEdit ); 
     
    151135    /* People who wrote the software */ 
    152136    QTextEdit *authorsEdit = new QTextEdit( this ); 
    153 #ifdef WIN32 
    154     QFile *authorsFile = new QFile( "COPYING.txt" ); 
    155     authorsFile->open( QIODevice::ReadOnly | QIODevice::Text ); 
    156     authorsEdit->setText( authorsFile->readAll().data() ); 
    157     authorsFile->close(); 
    158 #else 
    159     char *psz_authors = AUTHORS; 
    160137    authorsEdit->setText( qfu( psz_authors ) ); 
    161 #endif 
    162138    authorsEdit->setReadOnly( true ); 
    163139