jvanzyl 2004/05/10 12:43:49 Modified: maven-meeper/src/bin deploy-bundle Added: maven-meeper/src/bin d2u Log: o just adding some catches for cleanup and converting the POM to unix format before swizzling it. Revision Changes Path 1.2 +16 -6 maven-components/maven-meeper/src/bin/deploy-bundle Index: deploy-bundle =================================================================== RCS file: /home/cvs/maven-components/maven-meeper/src/bin/deploy-bundle,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- deploy-bundle 10 May 2004 00:21:08 -0000 1.1 +++ deploy-bundle 10 May 2004 19:43:49 -0000 1.2 @@ -23,6 +23,8 @@ POM=project.xml + ../d2u ${POM} + [ ! -f ${POM} ] && echo && echo "Cannot deploy without the project.xml file!" && echo && exit version=`cat ${POM} | tr '\n' ' ' | sed 's#<versions>.*</versions>##' | sed 's#<dependencies>.*</dependencies>##' | grep '<version>' | sed -e 's#^.*<version>##;s#</version>.*$##'` @@ -46,17 +48,25 @@ groupId=${artifactId} fi - echo " version: ${version}" - echo " groupId: ${groupId}" - echo "artifactId: ${artifactId}" + version=`echo ${version} | sed -e 's/ *$//'` + artifactId=`echo ${artifactId} | sed -e 's/ *$//'` + groupId=`echo ${groupId} | sed -e 's/ *$//'` + + echo + echo " version: [${version}]" + echo " groupId: [${groupId}]" + echo "artifactId: [${artifactId}]" + echo [ ! -f LICENSE.txt ] && echo && echo "Cannot deploy without the LICENSE.txt file!" && echo && exit cp project.xml ${artifactId}-${version}.pom - deploy-lic LICENSE.txt ${groupId} + ../d2u LICENSE.txt + + ../deploy-lic LICENSE.txt ${groupId} - deploy-pom ${artifactId}-${version}.pom ${groupId} + ../deploy-pom ${artifactId}-${version}.pom ${groupId} - deploy-jar ${artifactId}-${version}.jar ${groupId} + ../deploy-jar ${artifactId}-${version}.jar ${groupId} ) 1.1 maven-components/maven-meeper/src/bin/d2u Index: d2u =================================================================== perl -p -n -i.bak -e 's/\r\n/\n/' $1 rm $1.bak
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]