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