#!/bin/sh

# Go through all distributions. Set each file in bin/ and lib/ to the highest
# version found in Changes.

for i in $(distfind)
do
    echo $i
    cd $i
    NEWVER=$(perl -0777 -ne'/^(\d\.\d\d)\s*/m && print $1' Changes)
    setversion -v $NEWVER -d bin -d lib
done
