Don't fail if license is not present

PR: MRM-65

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@373639 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2006-01-31 00:12:35 +00:00
parent 016c8e31b5
commit 3d2897c680

View File

@ -98,16 +98,16 @@ echo $BUNDLE
# A little help for manually created upload bundles
[ -f license.txt ] && mv license.txt $LIC
[ -f licence.txt ] && mv licence.txt $LIC
[ ! -f $LIC ] && echo && echo "Cannot deploy without the $LIC file!" && echo && exit
if [ ! -f $LIC ]
then
../d2u $LIC
mkdir -p $REPODIR/${groupId}/licenses
cp -i $LIC $REPODIR/${groupId}/licenses/${artifactId}-${version}.license
fi
cp ${POM} ${artifactId}-${version}.pom
../d2u $LIC
mkdir -p $REPODIR/${groupId}/licenses
cp -i $LIC $REPODIR/${groupId}/licenses/${artifactId}-${version}.license
mkdir -p $REPODIR/${groupId}/poms
cp -i ${artifactId}-${version}.pom $REPODIR/${groupId}/poms