inc_bldnum revision 5385
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# Increment the tarball build number in Moz/Evo/APOC spec files.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# Created by Damien Carbery, 25 April 2005.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# Display usage information.
9df1de8309feb43d162df756c9290ce3afab802aDirk HoganIncrement the build source tarball number and add %changelog entry.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan-buildnum Specify build number to insert into spec files. (Required)
5d4589530d1353fdd627ab216a1cdcbcaf6b705ejenkins-email Specify email address to be listed in %changelog.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# ####################################
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# Main program.
564945e59b60a40c3b9458177b2ff63e2947686cPeter Major# ####################################
954d71f34d584a7bcc51a5df9933427542081d62Dirk Hogan# Display usage if no arguments.
addc51736ee961d7b52d048021139920d4364671Neil Madden# ############################
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan# Begin command line parsing.
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan# ############################
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan#Getopt::Long::Configure( 'pass_through' ); # Ignore unknown options.
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan# List of spec files to update.
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan#### my @specfiles = qw / apoc.spec evolution.spec gnome-spell.spec gtkhtml.spec hydrogen.spec libgal.spec libsoup.spec mozilla.spec oxygen2.spec /;
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan # Ensure all the specified files are present, quitting if any aren't.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan print "ERROR: $file is missing or not readable.\n";
9d406c6b25ce9f6bf266b077443e723b95962914Dirk Hogan# Change t_suffix and Release data and add %changelog entry for each file.
print OUT;
print OUT '* ', strftime("%a %b %e %Y",localtime), " - $Email\n- Bump source tarball to build $BuildNum.\n";
print OUT;
print OUT "\t* ", join( ' ', @specfiles[0..4] ), "\n\t", join( ' ', @specfiles[5..$#specfiles] ), ":\n\t* Bump source tarballs to build $BuildNum.\n\n";