chiark / gitweb /
bsmtp-pull: drop -2; avoid connection sharing
[bin.git] / unreleased-packages
index 92b26c6eb3b0d4b86d9a9acc113b61714bd573cb..ed313747a8e5303292bb85afa33deec11e98af0f 100755 (executable)
@@ -1,3 +1,16 @@
 #! /bin/sh
-grep UNRELEASED ~/src/debian/*/*/debian/changelog ~/src/debian/*/trunk/*/debian/changelog \
-       ~/src/ubuntu/*/*/debian/changelog
+paths=
+if [ -z "$1" ] || [ "$1" = debian ]; then
+       paths="${paths:+$paths }$HOME/src/debian/*/*/debian/changelog $HOME/src/debian/*/trunk/*/debian/changelog"
+fi
+if [ "$1" = d-i ]; then
+       paths="${paths:+$paths }$HOME/src/debian/debian-installer/trunk/debian-installer/installer/debian/changelog $HOME/src/debian/debian-installer/trunk/debian-installer/packages/*/debian/changelog $HOME/src/debian/debian-installer/trunk/debian-installer/packages/arch/*/*/debian/changelog $HOME/src/debian/debian-installer/trunk/debian-installer/packages/partman/*/debian/changelog $HOME/src/debian/debian-installer/trunk/debian-installer/manual/debian/changelog"
+fi
+if [ -z "$1" ] || [ "$1" = ubuntu ]; then
+       paths="${paths:+$paths }$HOME/src/ubuntu/*/*/debian/changelog"
+fi
+for path in $paths; do
+       if firstline="$(head -n1 "$path" | grep -h 'UNRELEASED;')"; then
+               echo "$path:$firstline"
+       fi
+done