]>
git.ipfire.org Git - thirdparty/dracut.git/blob - git2spec.pl
7 open( GIT
, 'git format-patch -M -N --no-signature -o "'.$pdir.'" '.$tag.' |');
13 use POSIX
qw(strftime);
14 my $datestr = strftime
"%Y%m%d", gmtime;
18 $tag=`git describe --abbrev=0 --tags` if not defined $tag;
20 my @patches=&create_patches
($tag, $pdir);
21 my $num=$#patches + 2;
22 $tag=~s/[^0-9]+?([0-9]+)/$1/;
27 print "Version: $tag\n";
30 print "Release: $release%{?dist}\n";
32 elsif ((/^Source0:/) || (/^Source:/)) {
37 print "Patch$num: $_";