-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
133 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
rootProject.name=rhino | ||
group=org.mozilla | ||
version=1.7.12-SNAPSHOT | ||
version=1.7.12 | ||
buildDir=buildGradle | ||
mavenSnapshotRepo=https://oss.sonatype.org/content/repositories/snapshots | ||
mavenReleaseRepo=https://oss.sonatype.org/service/local/staging/deploy/maven |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,37 @@ | ||
#!/bin/sh | ||
|
||
function deploy { | ||
if [ ! -f $1 ] | ||
then | ||
echo "Missing $1" | ||
exit 1 | ||
fi | ||
|
||
tf=/var/tmp/file.$$.jar | ||
rm -f ${tf} | ||
cp $1 ${tf} | ||
|
||
mvn gpg:sign-and-deploy-file \ | ||
-Dfile=${tf} \ | ||
-DpomFile=${2} \ | ||
-DrepositoryId=sonatype-nexus-staging \ | ||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \ | ||
-Dclassifier=${3} | ||
|
||
rm ${tf} | ||
} | ||
|
||
vers=`egrep '^version=' ../gradle.properties | awk -F = '{print $2}'` | ||
base=${HOME}/.m2/repository/org/mozilla | ||
|
||
echo "Deploying ${vers}" | ||
|
||
pom=maven-pom.xml | ||
jsjar=../buildGradle/libs/rhino-${vers}.jar | ||
echo "Installing ${jsjar}" | ||
srczip=../buildGradle/libs/rhino-${vers}-sources.jar | ||
echo "Sources are ${srczip}" | ||
doczip=../buildGradle/libs/rhino-${vers}-javadoc.jar | ||
echo "Javadoc is ${doczip}" | ||
|
||
if [ ! -f $jsjar ] | ||
then | ||
echo "Missing js.jar" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -f $srczip ] | ||
then | ||
echo "Missing rhino-${vers}-sources.zip. Run \"ant source-zip\"." | ||
exit 2 | ||
fi | ||
|
||
if [ ! -f $doczip ] | ||
then | ||
echo "Missing javadoc.zip. Run \"ant javadoc\"." | ||
exit 3 | ||
fi | ||
rb=${base}/rhino/${vers} | ||
deploy ${rb}/rhino-${vers}.jar maven-pom.xml | ||
deploy ${rb}/rhino-${vers}-sources.jar maven-pom.xml sources | ||
deploy ${rb}/rhino-${vers}-javadoc.jar maven-pom.xml javadoc | ||
|
||
mvn gpg:sign-and-deploy-file \ | ||
-Dfile=${jsjar} \ | ||
-DpomFile=${pom} \ | ||
-DrepositoryId=sonatype-nexus-staging \ | ||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ | ||
|
||
mvn gpg:sign-and-deploy-file \ | ||
-Dfile=${srczip} \ | ||
-DpomFile=${pom} \ | ||
-DrepositoryId=sonatype-nexus-staging \ | ||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \ | ||
-Dclassifier=sources | ||
|
||
mvn gpg:sign-and-deploy-file \ | ||
-Dfile=${doczip} \ | ||
-DpomFile=${pom} \ | ||
-DrepositoryId=sonatype-nexus-staging \ | ||
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \ | ||
-Dclassifier=javadoc | ||
rb=${base}/rhino-runtime/${vers} | ||
deploy ${rb}/rhino-runtime-${vers}.jar maven-runtime-pom.xml | ||
deploy ${rb}/rhino-runtime-${vers}-sources.jar maven-runtime-pom.xml sources | ||
deploy ${rb}/rhino-runtime-${vers}-javadoc.jar maven-runtime-pom.xml javadoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: org.mozilla.javascript.tools.shell.Main | ||
Implementation-Version: 1.7.12-SNAPSHOT | ||
Implementation-Title: Mozilla Rhino 1.7.12-SNAPSHOT | ||
Implementation-Version: 1.7.12 | ||
Implementation-Title: Mozilla Rhino 1.7.12 | ||
Implementation-Vendor: Mozilla Foundation | ||
Implementation-URL: http://www.mozilla.org/rhino |