egscripts/egdrupalhelpers/egdrupalmoduleversions

17 lines
299 B
Text
Raw Permalink Normal View History

#!/bin/bash
if [ -n "$1" ] ; then
dir=$1
else
dir=$PWD
fi
for module in * ; do
if [ ! -f $module/$module.info ] ; then
echo "Can't find $module/$module.info" 1>&2
continue
fi
echo -n $module
awk -F= '/^version/{version=$2}END{print version}' $module/$module.info | sed -e 's/"//g'
done