- Timestamp:
- Nov 15, 2007, 12:22:09 AM (18 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/Base.pm
r285 r286 872 872 my $cms=shift; 873 873 874 return if ( (not defined $authors) || (! -f $authors));875 open( AUT,$authors) || die "Unable to open $authors";874 return if ($authors eq "/dev/null"); 875 open(SAUTH,$authors) || die "Unable to open $authors"; 876 876 open(DAUTH,"> $dest/AUTHORS") || die "Unable to create $dest/AUTHORS"; 877 877 print DAUTH "Authors of the project are:\n"; 878 878 print DAUTH "===========================\n"; 879 while (< AUT>) {879 while (<SAUTH>) { 880 880 my ($nick,$gcos) = split(/:/); 881 chomp($gcos); 881 882 print DAUTH "$gcos"; 882 print DAUTH " ($nick under $cms)\n" if (defined $cms); 883 if (defined $cms) { 884 print DAUTH " ($nick under $cms)\n"; 885 } else { 886 print DAUTH "\n"; 887 } 883 888 } 884 889 close(DAUTH); 885 close( AUTH);890 close(SAUTH); 886 891 } 887 892 … … 890 895 my $pkgdir = shift; 891 896 my $dest = shift; 897 my $chglog = shift; 892 898 my $authors = shift; 893 899 … … 895 901 896 902 if ($cms->{$ENV{'PBPROJ'}} eq "svn") { 897 pb_system("svn log -v $pkgdir > $dest/$ENV{'PBCMSLOGFILE'}","Extracting log info from SVN"); 898 if ((-x "/usr/bin/svn2cl") && (! -f $dest/ChangeLog)) { 899 pb_system("/usr/bin/svn2cl --group-by-day --authors=$authors -i -o $dest/ChangeLog $pkgdir","Generating ChangeLog from SVN"); 903 if (! -f "$dest/ChangeLog") { 904 if (-x "/usr/bin/svn2cl") { 905 pb_system("/usr/bin/svn2cl --group-by-day --authors=$authors -i -o $dest/ChangeLog $pkgdir","Generating ChangeLog from SVN"); 906 } else { 907 # To be written from pbcl 908 pb_system("svn log -v $pkgdir > $dest/$ENV{'PBCMSLOGFILE'}","Extracting log info from SVN"); 909 } 900 910 } 901 911 } elsif ($cms->{$ENV{'PBPROJ'}} eq "flat") { … … 904 914 my $tmp=basename($pkgdir); 905 915 # CVS needs a relative path ! 906 pb_system("cvs log $tmp > $dest/$ENV{'PBCMSLOGFILE'}","Extracting log info from CVS"); 907 if ((-x "/usr/bin/svn2cl") && (! -f $dest/ChangeLog)) { 908 pb_system("/usr/bin/cvs2cl --group-by-day -U $authors -f $dest/ChangeLog $pkgdir","Generating ChangeLog from SVN"); 916 if (! -f "$dest/ChangeLog") { 917 if (-x "/usr/bin/cvs2cl") { 918 pb_system("/usr/bin/cvs2cl --group-by-day -U $authors -f $dest/ChangeLog $pkgdir","Generating ChangeLog from SVN"); 919 } else { 920 # To be written from pbcl 921 pb_system("cvs log $tmp > $dest/$ENV{'PBCMSLOGFILE'}","Extracting log info from CVS"); 922 } 909 923 } 910 924 } else { -
devel/pbconf/project-builder/rpm/project-builder.spec
r283 r286 48 48 %files 49 49 %defattr(-,root,root) 50 %doc ChangeLog svn.log50 %doc ChangeLog 51 51 %doc INSTALL COPYING README AUTHORS contrib/pbsetupqemu 52 52
Note:
See TracChangeset
for help on using the changeset viewer.