blob: e56f4fdd27b8734250d63133bf51db6f7e2211d6 [file] [log] [blame]
#!/bin/sh
# This script prints the description of a project looking
# at the pom whose name given as a parameter.
if [ $# -ne 1 ]
then
echo -e "Error!\tUsage: description.sh <pom_xml_file>"
exit 1
fi
xmlstarlet sel -t -m "/project/description" -v "text()" -n $1 | tr '\n' ' ' | tr -s ' ' | sed 's/^ //g'