You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/03 19:38:02 UTC
cvs commit: jakarta-turbine-maven/src/admin deploy-snapshot-jar create-checksums deploy-artifact deploy-artifact.bat deploy-dist deploy-dist.bat deploy-jar deploy-jar.bat deploy-snapshot-jar.bat
jvanzyl 2003/01/03 10:38:02
Modified: src/admin create-checksums deploy-artifact
deploy-artifact.bat deploy-dist deploy-dist.bat
deploy-jar deploy-jar.bat deploy-snapshot-jar.bat
Added: src/admin deploy-snapshot-jar
Log:
o Fixing up all admin scripts to make the md5 checksums properly. We should
fix these if there are any glitches and only use these scripts to deploy
to the central repository.
Revision Changes Path
1.2 +1 -1 jakarta-turbine-maven/src/admin/create-checksums
Index: create-checksums
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/create-checksums,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- create-checksums 7 Oct 2002 03:27:54 -0000 1.1
+++ create-checksums 3 Jan 2003 18:38:02 -0000 1.2
@@ -2,6 +2,6 @@
for i in `find -name '*.jar'`
do
- md5sum $i | awk '{print $1}' > $i.md5
+ md5sum $i | sed 's/ .*$//' > $i.md5
done
1.2 +1 -1 jakarta-turbine-maven/src/admin/deploy-artifact
Index: deploy-artifact
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-artifact,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- deploy-artifact 9 Dec 2002 22:26:01 -0000 1.1
+++ deploy-artifact 3 Jan 2003 18:38:02 -0000 1.2
@@ -19,4 +19,4 @@
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} > ${ARTIFACT}.md5"
+ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp maven ${DIR}/${ARTIFACT}; cd ${DIR}; md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5"
1.2 +24 -24 jakarta-turbine-maven/src/admin/deploy-artifact.bat
Index: deploy-artifact.bat
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-artifact.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- deploy-artifact.bat 20 Dec 2002 05:37:22 -0000 1.1
+++ deploy-artifact.bat 3 Jan 2003 18:38:02 -0000 1.2
@@ -1,24 +1,24 @@
-@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"
+@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% | sed 's/ .*$//' > %ARTIFACT%.md5"
1.3 +1 -1 jakarta-turbine-maven/src/admin/deploy-dist
Index: deploy-dist
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-dist,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- deploy-dist 7 Oct 2002 01:20:33 -0000 1.2
+++ deploy-dist 3 Jan 2003 18:38:02 -0000 1.3
@@ -19,4 +19,4 @@
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} > ${ARTIFACT}.md5"
+ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp maven ${DIR}/${ARTIFACT}; cd ${DIR}; md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5"
1.2 +1 -1 jakarta-turbine-maven/src/admin/deploy-dist.bat
Index: deploy-dist.bat
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-dist.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- deploy-dist.bat 26 Oct 2002 15:14:46 -0000 1.1
+++ deploy-dist.bat 3 Jan 2003 18:38:02 -0000 1.2
@@ -20,4 +20,4 @@
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"
+ssh %User%@%REPO% "chmod 664 %DIR%/%ARTIFACT%; chgrp maven %DIR%/%ARTIFACT%; cd %DIR%; md5sum %ARTIFACT% | sed 's/ .*$//' > %ARTIFACT%.md5"
1.3 +1 -1 jakarta-turbine-maven/src/admin/deploy-jar
Index: deploy-jar
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-jar,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- deploy-jar 7 Oct 2002 01:20:33 -0000 1.2
+++ deploy-jar 3 Jan 2003 18:38:02 -0000 1.3
@@ -19,4 +19,4 @@
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} > ${ARTIFACT}.md5"
+ssh $REPO "chmod 664 ${DIR}/${ARTIFACT}; chgrp maven ${DIR}/${ARTIFACT}; cd ${DIR}; md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ARTIFACT}.md5"
1.2 +1 -1 jakarta-turbine-maven/src/admin/deploy-jar.bat
Index: deploy-jar.bat
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-jar.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- deploy-jar.bat 26 Oct 2002 15:14:46 -0000 1.1
+++ deploy-jar.bat 3 Jan 2003 18:38:02 -0000 1.2
@@ -20,4 +20,4 @@
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"
+ssh %USER%@%REPO% "chmod 664 %DIR%/%ARTIFACT%; chgrp maven %DIR%/%ARTIFACT%; cd %DIR%; md5sum %ARTIFACT% | sed 's/ .*$//' > %ARTIFACT%.md5"
1.3 +2 -2 jakarta-turbine-maven/src/admin/deploy-snapshot-jar.bat
Index: deploy-snapshot-jar.bat
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/admin/deploy-snapshot-jar.bat,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- deploy-snapshot-jar.bat 17 Dec 2002 16:43:13 -0000 1.2
+++ deploy-snapshot-jar.bat 3 Jan 2003 18:38:02 -0000 1.3
@@ -20,7 +20,7 @@
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"
+ssh %USER%@%REPO% "chmod 664 %DIR%/%ARTIFACT%; chgrp maven %DIR%/%ARTIFACT%; cd %DIR%; md5sum %ARTIFACT% | sed 's/ .*$//' > %ARTIFACT%.md5"
Rem set up snapshot link
-ssh %USER%@%REPO% "cd %DIR%; ln -sf %ARTIFACT% %ID%-SNAPSHOT.jar; md5sum %ARTIFACT% > %ID%-SNAPSHOT.jar.md5"
+ssh %USER%@%REPO% "cd %DIR%; ln -sf %ARTIFACT% %ID%-SNAPSHOT.jar; md5sum %ARTIFACT% | sed 's/ .*$//' > %ID%-SNAPSHOT.jar.md5"
1.1 jakarta-turbine-maven/src/admin/deploy-snapshot-jar
Index: deploy-snapshot-jar
===================================================================
#!/bin/sh
# Deploy JAR to the repository
# $1 : artifact to copy
# $2 : project id
ARTIFACT=$1
ID=$2
ARTIFACT_TYPE=jars
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"
# Make sure the perms are correct. Just in case
ssh $REPO "cd ${DIR}; ln -sf ${ARTIFACT} ${ID}-SNAPSHOT.jar; md5sum ${ARTIFACT} | sed 's/ .*$//' > ${ID}-SNAPSHOT.md5"