[med-svn] [Git][med-team/community/package_template][master] Better support for project hosted on gitlab.com

Andreas Tille gitlab at salsa.debian.org
Tue Oct 8 07:20:16 BST 2019



Andreas Tille pushed to branch master at Debian Med / community / package_template


Commits:
04214ea1 by Andreas Tille at 2019-10-08T06:19:49Z
Better support for project hosted on gitlab.com

- - - - -


1 changed file:

- personalise_template


Changes:

=====================================
personalise_template
=====================================
@@ -49,5 +49,11 @@ if echo "$PHOMEPAGE" | grep -q 'github\.com' ; then
   echo "version=4\n" > watch
   echo "$PHOMEPAGE/releases .*/archive/v?@ANY_VERSION@@ARCHIVE_EXT@" >> watch
 fi
+if echo "$PHOMEPAGE" | grep -q 'gitlab\.com' ; then
+  echo "version=4\n" > watch
+  UNAME=$(echo $PHOMEPAGE | sed 's:/$::' | sed 's:^.*/\([^/]\+\):\1:')
+  echo "$PHOMEPAGE/tags?sort=updated_desc .*/archive/v?@ANY_VERSION@/${UNAME}[-v]*.*@ARCHIVE_EXT@" >> watch
+  sed -i -e "s/^\(Upstream-Name:\).*/\1 ${UNAME}/" -e "s?^\(Source:\).*?\1 ${PHOMEPAGE}?" copyright
+fi
 cd "$CURDIR"
 mv "$PKG" "$PKG"_



View it on GitLab: https://salsa.debian.org/med-team/community/package_template/commit/04214ea16c5c57041827f6555a3d05dd274c639b

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/package_template/commit/04214ea16c5c57041827f6555a3d05dd274c639b
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191008/ad9a4cc4/attachment.html>


More information about the debian-med-commit mailing list