Changeset 7440827a7f8064269e74394895ec0c6073778490
- 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
| rdb74f67 |
r7440827 |
|
| 620 | 620 | cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-${VERSION}/" |
|---|
| 621 | 621 | |
|---|
| 622 | | for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \ |
|---|
| | 622 | for file in MAINTAINERS NEWS COPYING README ; \ |
|---|
| 623 | 623 | do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; \ |
|---|
| 624 | 624 | unix2dos "$(top_builddir)/vlc-${VERSION}/$${file}.txt" ; done |
|---|
| r7fd6e10 |
r7440827 |
|
| 1 | 1 | $Id$ |
|---|
| 2 | | |
|---|
| 3 | 2 | VLC makes extensive use of the following persons' code: |
|---|
| 4 | 3 | |
|---|
| r4070db3 |
r7440827 |
|
| 83 | 83 | mkdir -p -- dialogs |
|---|
| 84 | 84 | 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 |
|---|
| 86 | 86 | cat $(top_srcdir)/COPYING | sed s/'"'/'\\"'/g | awk '{ print "\""$$0"\\n\"" }' >> dialogs/about.hpp.tmp |
|---|
| 87 | 87 | echo ";" >> dialogs/about.hpp.tmp |
|---|
| 88 | 88 | 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 |
|---|
| 90 | 90 | echo ";" >> dialogs/about.hpp.tmp |
|---|
| 91 | 91 | 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 |
|---|
| 93 | 93 | echo ";" >> dialogs/about.hpp.tmp |
|---|
| 94 | 94 | mv -f -- dialogs/about.hpp.tmp dialogs/about.hpp |
|---|
| r923f538 |
r7440827 |
|
| 115 | 115 | /* GPL License */ |
|---|
| 116 | 116 | 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; |
|---|
| 124 | 117 | licenseEdit->setText( qfu( psz_license ) ); |
|---|
| 125 | | #endif |
|---|
| 126 | 118 | licenseEdit->setReadOnly( true ); |
|---|
| 127 | 119 | |
|---|
| … | … | |
| 137 | 129 | thanksLayout->addWidget( thanksLabel ); |
|---|
| 138 | 130 | 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; |
|---|
| 146 | 131 | thanksEdit->setText( qfu( psz_thanks ) ); |
|---|
| 147 | | #endif |
|---|
| 148 | 132 | thanksEdit->setReadOnly( true ); |
|---|
| 149 | 133 | thanksLayout->addWidget( thanksEdit ); |
|---|
| … | … | |
| 151 | 135 | /* People who wrote the software */ |
|---|
| 152 | 136 | 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; |
|---|
| 160 | 137 | authorsEdit->setText( qfu( psz_authors ) ); |
|---|
| 161 | | #endif |
|---|
| 162 | 138 | authorsEdit->setReadOnly( true ); |
|---|
| 163 | 139 | |
|---|