jvanzyl     2004/05/10 14:11:46

  Modified:    maven-meeper/src/bin deploy-bundle
  Added:       maven-meeper/src/bin deploy-plugin
  Log:
  o adding a little hack to determine if an upload is a maven plugin
    or not. We need to use the <type/> but that can come post 1.0.
  
  Revision  Changes    Path
  1.3       +10 -1     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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- deploy-bundle     10 May 2004 19:43:49 -0000      1.2
  +++ deploy-bundle     10 May 2004 21:11:45 -0000      1.3
  @@ -68,5 +68,14 @@
     
     ../deploy-pom ${artifactId}-${version}.pom ${groupId}
     
  -  ../deploy-jar ${artifactId}-${version}.jar ${groupId}
  +  artifactType=`echo ${artifactId} | sed -e 's/maven-.*-plugin//'`
  +  
  +  if [ -z ${artifactType} ]
  +  then
  +    echo "Deploying Plugin ..."
  +    ../deploy-plugin ${artifactId}-${version}.jar ${groupId}        
  +  else
  +    echo "Deploying JAR ..."
  +    ../deploy-jar ${artifactId}-${version}.jar ${groupId}        
  +  fi    
   )  
  
  
  
  1.1                  maven-components/maven-meeper/src/bin/deploy-plugin
  
  Index: deploy-plugin
  ===================================================================
  #!/bin/sh
  
  # Deploy JAR to the repository
  # $1 : artifact to copy
  # $2 : project id
  
  ARTIFACT=$1
  ID=$2
  ARTIFACT_TYPE=plugins
  REPO=login.ibiblio.org
  DIR=/public/html/maven/${ID}/${ARTIFACT_TYPE}
  
  echo ${DIR}
  
  # Make sure the target directory is present.
  ssh $REPO "mkdir -p ${DIR}"
  
  # Copy the artifact to the repository.
  scp $ARTIFACT ${REPO}:${DIR}
  
  # Make sure the perms are correct. Just in case
  ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp maven ${DIR}/${ARTIFACT}; cd ${DIR}; 
md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5; chgrp maven ${ARTIFACT}.md5"
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to