Commit 9721a48d authored by Andreas Tille's avatar Andreas Tille
Browse files

If given URL was pointing to github just create a watch file that works "mostly"

parent 9f81d4aa
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -43,3 +43,8 @@ sed -i "s/<timestamp_as_per_date_-R>/${CHDATE}/" changelog
if [ "$PHOMEPAGE" != "" ] ; then
  sed -i "s#<homepage>#$PHOMEPAGE#" control
fi

if echo "$PHOMEPAGE" | grep -q 'github\.com' ; then
  echo "version=4\n" > watch
  echo "$PHOMEPAGE/releases .*/archive/v?@ANY_VERSION@@ARCHIVE_EXT@" >> watch
fi