commit 9e269b3c86618fa473833f6959c6c955e2b14066
Author: Elan Ruusamäe <[email protected]>
Date: Wed Aug 15 23:19:03 2012 +0300
prepend to autogenerated changelog link to full changelog in gitweb
builder.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index 6cb8678..c67cad4 100755
--- a/builder.sh
+++ b/builder.sh
@@ -468,7 +468,20 @@ insert_gitlog() {
git notes list $sha1 > /dev/null 2>&1 && logfmt=%N
git log -n 1 $sha1 --format=format:"* %ad %an <%ae>
%h%n${logfmt}%n" --date=raw | sed '/^$/q'
done > $gitlog
- LC_ALL=C gawk '/^\* /{printf("* %s %s\n", strftime("%a %b %d %Y", $2),
substr($0, length($1)+length($2)+length($3)+4)); next}{print}' $gitlog >
$speclog
+
+ # add link to full git logs
+ local
giturl="http://git.pld-linux.org/?p=packages/$PACKAGE_NAME.git;a=log"
+ if [ -n "$CVSTAG" ]; then
+ giturl="$giturl;h=$CVSTAG"
+ fi
+ local gitauthor="PLD Linux Team <[email protected]>"
+ LC_ALL=C gawk -vgiturl="$giturl" -vgitauthor="$gitauthor"
-vpackage=$PACKAGE_NAME 'BEGIN{
+ printf("* %s %s\n- For complete changelog see: %s\n",
strftime("%a %b %d %Y"), gitauthor, giturl);
+ print;
+ exit
+ }' > $speclog
+
+ LC_ALL=C gawk '/^\* /{printf("* %s %s\n", strftime("%a %b %d %Y", $2),
substr($0, length($1)+length($2)+length($3)+4)); next}{print}' $gitlog >>
$speclog
sed '/^%changelog/,$d' $SPECFILE | sed -e "\${
a%changelog
r $speclog
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit