dion 2002/12/19 21:37:22 Added: src/admin deploy-artifact.bat Log: Added windows version of deploy artifact Revision Changes Path 1.1 jakarta-turbine-maven/src/admin/deploy-artifact.bat Index: deploy-artifact.bat =================================================================== @echo off REM Copy an artifact to the repository REM %1 : artifact to copy REM %2 : project id REM %3 : artifact type REM %4 : user name on remote box SET ARTIFACT=%1 SET ID=%2 SET ARTIFACT_TYPE=%3 SET USER=%4 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"
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
