chore: Don't embed $Revision$ tags in auto-generated files

I was going to convert them to a git hash instead, but that would
break builds from tarballs.

Change-Id: I76213b8b65df2c6cfb73cba299a4975a22725f36
This commit is contained in:
Solomon Peachy 2026-06-01 16:16:31 -04:00
parent a39e4f2a06
commit 3152beee32
6 changed files with 26 additions and 26 deletions

View file

@ -20,7 +20,7 @@
#expects -dM -E source input on STDIN #expects -dM -E source input on STDIN
use strict; use strict;
use warnings; use warnings;
my $svnrev = '$Revision$'; my $svnrev = '';
my @buttons = (); my @buttons = ();
my $count = 1; #null sentinel my $count = 1; #null sentinel
my $val; my $val;
@ -50,7 +50,7 @@ while(my $line = <STDIN>)
my @sorted = sort { @$a{'value'} <=> @$b{'value'} } @buttons; my @sorted = sort { @$a{'value'} <=> @$b{'value'} } @buttons;
print <<EOF print <<EOF
/* Don't change this file! */ /* Don't change this file! */
/* It is automatically generated of button.h */ /* It is automatically generated of button.h ($svnrev) */
#include "plugin.h" #include "plugin.h"
#include "button.h" #include "button.h"
#include "button_helper.h" #include "button_helper.h"

View file

@ -1,11 +1,11 @@
#!/usr/bin/env perl #!/usr/bin/env perl
############################################################################ ############################################################################
# __________ __ ___. # __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___ # Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/ # \/ \/ \/ \/ \/
# #
# Copyright (C) 2009 by Maurus Cuelenaere # Copyright (C) 2009 by Maurus Cuelenaere
# #
@ -17,6 +17,8 @@
# #
############################################################################ ############################################################################
my $svnrev = '';
$i = 0; $i = 0;
$j = 0; $j = 0;
while(my $line = <STDIN>) while(my $line = <STDIN>)
@ -41,7 +43,7 @@ while(my $line = <STDIN>)
} }
print "-- Don't change this file!\n"; print "-- Don't change this file!\n";
printf "-- It is automatically generated of action.h %s\n", '$Revision$'; printf "-- It is automatically generated of action.h (%s)\n", $svnrev;
print "rb.actions = {\n"; print "rb.actions = {\n";
foreach $action(@actions) foreach $action(@actions)

View file

@ -1,11 +1,11 @@
#!/usr/bin/env perl #!/usr/bin/env perl
############################################################################ ############################################################################
# __________ __ ___. # __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___ # Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/ # \/ \/ \/ \/ \/
# #
# Copyright (C) 2009 by Maurus Cuelenaere # Copyright (C) 2009 by Maurus Cuelenaere
# #
@ -17,7 +17,7 @@
# #
############################################################################ ############################################################################
$svnrev = '$Revision$'; $svnrev = '';
print <<EOF print <<EOF
#include <stdio.h> #include <stdio.h>

View file

@ -1,11 +1,11 @@
#!/usr/bin/env perl #!/usr/bin/env perl
############################################################################ ############################################################################
# __________ __ ___. # __________ __ ___.
# Open \______ \ ____ ____ | | _\_ |__ _______ ___ # Open \______ \ ____ ____ | | _\_ |__ _______ ___
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
# \/ \/ \/ \/ \/ # \/ \/ \/ \/ \/
# #
# Copyright (C) 2009 by Maurus Cuelenaere # Copyright (C) 2009 by Maurus Cuelenaere
# #
@ -36,7 +36,7 @@ sub rand_string
{ {
my @chars=('a'..'z'); my @chars=('a'..'z');
my $ret; my $ret;
foreach (1..5) foreach (1..5)
{ {
$ret .= $chars[rand @chars]; $ret .= $chars[rand @chars];
} }
@ -179,7 +179,7 @@ while(<STDIN>)
} }
} }
my $svnrev = '$Revision$'; my $svnrev = '';
# Print the header # Print the header
print <<EOF print <<EOF
@ -389,7 +389,7 @@ foreach my $function (@sorted_functions)
{ {
$func_args .= ", ".$arguments[$i]{'name'}; $func_args .= ", ".$arguments[$i]{'name'};
} }
# Print the function call # Print the function call
my $func = sprintf("rb->%s(%s)", @$function{'name'}, $func_args); my $func = sprintf("rb->%s(%s)", @$function{'name'}, $func_args);

View file

@ -25,7 +25,7 @@ use warnings;
# first pass outputs a c file that shall be compiled with the -S option # first pass outputs a c file that shall be compiled with the -S option
# second pass extracts the member, offset, size, type from the assembly # second pass extracts the member, offset, size, type from the assembly
my $svnrev = '$Revision$'; my $svnrev = '';
my $helper_name = 'LUA_RB_SETTINGS_H_HELPER'; my $helper_name = 'LUA_RB_SETTINGS_H_HELPER';
############# configuration ############# ############# configuration #############

View file

@ -16,7 +16,7 @@ use Carp;
use Fcntl qw(:seek); use Fcntl qw(:seek);
use vars qw( use vars qw(
@ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION $REVISION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION
@mp3_genres %mp3_genres @winamp_genres %winamp_genres $try_harder @mp3_genres %mp3_genres @winamp_genres %winamp_genres $try_harder
@t_bitrate @t_sampling_freq @frequency_tbl %v1_tag_fields @t_bitrate @t_sampling_freq @frequency_tbl %v1_tag_fields
@v1_tag_names %v2_tag_names %v2_to_v1_names $AUTOLOAD @v1_tag_names %v2_tag_names %v2_to_v1_names $AUTOLOAD
@ -36,8 +36,6 @@ use vars qw(
all => [@EXPORT, @EXPORT_OK] all => [@EXPORT, @EXPORT_OK]
); );
# $Id$
($REVISION) = ' $Revision$ ' =~ /\$Revision:\s+([^\s]+)/;
$VERSION = '1.26'; # Just adds metadata $VERSION = '1.26'; # Just adds metadata
# JRF: Whether we're debugging the ID3v2.4 support # JRF: Whether we're debugging the ID3v2.4 support