source: lliurex-meta/trunk/fuentes/updatechangelog @ 1615

Last change on this file since 1615 was 1615, checked in by kbut, 3 years ago

add script to update changelog

  • Property svn:executable set to *
File size: 425 bytes
Line 
1#!/bin/bash
2svn st | grep "M" | awk '{ print $2 }' | xargs svn diff | grep -e "^+[^+]" | sed -e "s%^+%%g" | sort -u > /tmp/addpackages
3svn st | grep "M" | awk '{ print $2 }' | xargs svn diff | grep -e "^+[^-]" | sed -e "s%^-%%g" | sort -u > /tmp/removepackages
4packages=$(cat /tmp/addpackages | tr "\n" ",")
5dch -i -U "Add ${packages::-1}"
6packages=$(cat /tmp/removepackages | tr "\n" ",")
7dch -i -U "Remove ${packages::-1}"
Note: See TracBrowser for help on using the repository browser.