update version.sh to exclude third-party. add $Id:$ to the new files s.t. version.sh will find them.

This commit is contained in:
Charles Kerr 2007-08-18 17:05:51 +00:00
parent e94b016e81
commit 43bfc5cd7f
11 changed files with 22 additions and 10 deletions

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef TR_LIST_H

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef TR_MAKEMETA_H

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef _TR_POINTERS_H_

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#include "list.h"

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef _TR_PUBLISHER_H_

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#include <assert.h>

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef _TR_TIMER_H_

View File

@ -1051,8 +1051,6 @@ int tr_torrentAddCompact( tr_torrent_t * tor, int from,
added += tr_torrentAttachPeer( tor, peer );
}
tr_inf( "tr_torrentAddCompact %d peers to %s", added, tor->info.name );
return added;
}

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef _TR_TRACKER_H_

View File

@ -6,6 +6,8 @@
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* the Transmission project.
*
* $Id:
*/
#ifndef TR_EVENT_H

View File

@ -12,14 +12,10 @@ STRING=0.80+
PEERID_PREFIX="-TR080Z-"
USERAGENT_PREFIX="0.80+"
SVN_REVISION=`( find . '(' -name '*.[chm]' -o -name '*.cpp' -o -name '*.po' \
-o -name '*.mk' -o -name '*.in' -o -name 'Makefile' \
-o -name 'configure' ')' -exec cat '{}' ';' ) | \
sed -e '/\$Id:/!d' -e \
's/.*\$Id: [^ ]* \([0-9]*\) .*/\1/' |
awk 'BEGIN { REV=0 }
{ if ( $1 > REV ) REV=$1 }
END { print REV }'`
SVN_REVISION=`find ./ -name "*\.[ch]" -o -name "*\.cpp" -o -name "*\.po" | \
xargs grep "\$Id:" | \
grep -v third-party | \
cut -d"$Id:" -f3 | cut -d" " -f3 | sort -n | tail -n 1`
# Generate files to be included: only overwrite them if changed so make
# won't rebuild everything unless necessary