You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/07/16 15:00:41 UTC
svn commit: r1691391 - /myfaces/site/publish/tobago/update-doc-1.0.sh
Author: lofwyr
Date: Thu Jul 16 13:00:41 2015
New Revision: 1691391
URL: http://svn.apache.org/r1691391
Log:
release 1.0.42
Modified:
myfaces/site/publish/tobago/update-doc-1.0.sh
Modified: myfaces/site/publish/tobago/update-doc-1.0.sh
URL: http://svn.apache.org/viewvc/myfaces/site/publish/tobago/update-doc-1.0.sh?rev=1691391&r1=1691390&r2=1691391&view=diff
==============================================================================
--- myfaces/site/publish/tobago/update-doc-1.0.sh (original)
+++ myfaces/site/publish/tobago/update-doc-1.0.sh Thu Jul 16 13:00:41 2015
@@ -1,21 +1,37 @@
-VERSION=1.0.40
+#! /bin/bash
+set -e
+
+VERSION=1.0.42
REPOSITORY=https://repository.apache.org/content/repositories/releases
-wget --no-check-certificate --user-agent="" $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/tobago-core-$VERSION-tlddoc.jar
+
TLDDOC=tobago-core-$VERSION-tlddoc.jar
-wget --no-check-certificate --user-agent="" $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/tobago-core-$VERSION-javadoc.jar
JAVADOC=tobago-core-$VERSION-javadoc.jar
-
-mkdir -p apidocs-$VERSION
-cd apidocs-$VERSION
-jar xvf ../$JAVADOC
-cd ..
-cd tobago-core
-mkdir -p tlddoc-$VERSION
-cd tlddoc-$VERSION
+cd doc
+
+if which curl >/dev/null; then
+ # curl
+ curl --fail $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/${TLDDOC} -o ${TLDDOC}
+ curl --fail $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/${JAVADOC} -o ${JAVADOC}
+else
+ # wget
+ wget --no-check-certificate --user-agent="" $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/${TLDDOC}
+ wget --no-check-certificate --user-agent="" $REPOSITORY/org/apache/myfaces/tobago/tobago-core/$VERSION/${JAVADOC}
+fi
+
+mkdir -p $VERSION/api
+cd $VERSION/api
+jar xvf ../../$JAVADOC
+rm -r META-INF
+cd ../..
+
+mkdir -p $VERSION/tld
+cd $VERSION/tld
jar xvf ../../$TLDDOC
-cd ..
-cd ..
+rm -r META-INF
+cd ../..
rm $TLDDOC
rm $JAVADOC
+
+cd ..