- Update to 1.03

This commit is contained in:
Philippe Audeoud 2009-03-27 09:27:31 +00:00
parent 58247e09a5
commit e2b0522ca7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231100
3 changed files with 46 additions and 10 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= PDF-Create
PORTVERSION= 1.02
PORTVERSION= 1.03
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-

View file

@ -1,3 +1,3 @@
MD5 (PDF-Create-1.02.tar.gz) = b63aac40dad00c69edd8144a7c59f716
SHA256 (PDF-Create-1.02.tar.gz) = 7c364bf27e77b7469076589d0c1cf94718dd6f8d9ef709a0a4fb7ceb325f25fc
SIZE (PDF-Create-1.02.tar.gz) = 103401
MD5 (PDF-Create-1.03.tar.gz) = 19f6c51d7c473c59909241269e048696
SHA256 (PDF-Create-1.03.tar.gz) = 55274a5fda1a40b23efffad6e2bddf769a240c417a13f6f003a22debae147eeb
SIZE (PDF-Create-1.03.tar.gz) = 103334

View file

@ -1,9 +1,45 @@
--- Changes.PL.orig 2008-06-04 14:09:50.000000000 +0200
+++ Changes.PL 2008-06-04 14:08:31.000000000 +0200
@@ -7,5 +7,5 @@
--- Changes.PL.orig 2009-03-23 23:50:18.000000000 +0000
+++ Changes.PL 2009-03-27 09:12:48.000000000 +0000
@@ -3,12 +3,39 @@
# Changes.PL
#
# Create the 'Changes' file automatically from git commit messages
-# and versioning tags in the repository
+# and versioning tags in the repository.
+#
+# This script is designed to be run only on the PDF::Create maintainers
+# workstation and is not needed to install PDF::Create.
+#
use strict;
-`git log --abbrev-commit --pretty > Changes`;
+#`git log --abbrev-commit --pretty > Changes`;
-open(OUT, ">Changes") or die "Can not open 'Changes' for writing\n";
-open(IN,"git log --abbrev-commit --pretty |") or die "Can not run git\n";
+#
+# Bail out with non-alarming error message if git ot the correct repository
+# is missing.
+#
+
+my $user;
+my $git=`which git`;
+chomp $git;
+if (! (-f $git)) {
+ printf "Skipping... (git not found/installed)\n";
+ exit (0);
+}
+
+if (! ($user=`git config --get user.name 2>/dev/null`)) {
+ printf "Skipping... (git not found/installed)\n";
+ exit (0);
+}
+chop $user;
+if ("$user" ne "Markus Baertschi") {
+ printf "Skipping... (not on maintainers workstation)\n";
+ exit (0);
+}
+
+open(OUT,">Changes") or die "Can not open 'Changes' for writing\n";
+open(IN,"git log --abbrev-commit --pretty |") or die "Problem running git log\n";
while(<IN>){
# read the change log
if (/^commit /) {