]>
git.ipfire.org Git - thirdparty/dracut.git/blob - git2spec.pl
4 open( GIT
, 'git log --pretty=format:%H |');
6 open( GIT2
, "git tag --contains $_ |");
22 open( GIT
, 'git format-patch --no-renames -N --no-signature '.$tag.' |');
27 use POSIX
qw(strftime);
28 my $datestr = strftime
"%Y%m%d", gmtime;
31 $tag=&last_tag
if not defined $tag;
32 my @patches=&create_patches
($tag);
33 my $num=$#patches + 2;
34 $tag=~s/[^0-9]+?([0-9]+)/$1/;
35 my $release="$num.git$datestr";
36 $release="1" if $num == 1;
40 print "Version: $tag\n";
43 print "Release: $release\n";
45 elsif ((/^Source0:/) || (/^Source:/)) {
49 print "Patch$num: $_";
58 print "%patch$num -p1\n";