chiark / gitweb /
my-debmirror: drop d-i images
[bin.git] / unreleased-packages
index b6a3a17..ed31374 100755 (executable)
@@ -1,2 +1,16 @@
 #! /bin/sh
-grep UNRELEASED ~/src/debian/*/*/debian/changelog ~/src/debian/*/trunk/*/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