You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2002/12/12 14:13:45 UTC
cvs commit: jakarta-turbine-maven/src/admin deploy-snapshot-jar.bat
dion 2002/12/12 05:13:45
Added: src/admin deploy-snapshot-jar.bat
Log:
Added help windows file since the install snapshot doesn't work
Revision Changes Path
1.1 jakarta-turbine-maven/src/admin/deploy-snapshot-jar.bat
Index: deploy-snapshot-jar.bat
===================================================================
@Echo off
Rem Deploy JAR to the repository
Rem %1 : artifact to copy
Rem %2 : project id
Rem %3 : user id
Set ARTIFACT=%1
Set ID=%2
Set User=%3
Set ARTIFACT_TYPE=jars
Set REPO=login.ibiblio.org
Set DIR=/public/html/maven/%ID%/%ARTIFACT_TYPE%
echo %DIR%
Rem Make sure the target directory is present.
ssh %USER%@%REPO% "mkdir -p %DIR%"
Rem Copy the artifact to the repository.
scp %ARTIFACT% %USER%@%REPO%:%DIR%
Rem Make sure the perms are correct. Just in case
ssh %USER%@%REPO% "chmod 664 %DIR%/%ARTIFACT%; chgrp maven %DIR%/%ARTIFACT%; cd %DIR%; md5sum %ARTIFACT% > %ARTIFACT%.md5"
Rem set up snapshot link
ssh %USER%@%REPO% "cd %DIR%; ln -sf %ARTIFACT% %ID%-SNAPSHOT.jar; md5sum %ARTIFACT% > %ID%-SNAPSHOT.md5"