diff --git a/mvn-site-deploy.sh b/mvn-site-deploy.sh index 2f72a3d..258f11d 100755 --- a/mvn-site-deploy.sh +++ b/mvn-site-deploy.sh @@ -27,32 +27,45 @@ # create a fresh site #mvn clean install site -# prepare the material to upload +echo "Checkout $base/release-$version" $svn mkdir $msg $base/release-$version 2> /dev/null -rm -rf $tmp -$svn checkout $base/release-$version $tmp +# todo: checkout only if not there yet. +#rm -rf $tmp +#$svn checkout $base/release-$version $tmp +$svn revert --recursive $tmp +$svn update $tmp -cp -r target/site $tmp/piccolo2d -cp -r core/target/site $tmp/piccolo2d-core -cp -r extras/target/site $tmp/piccolo2d-extras -cp -r examples/target/site $tmp/piccolo2d-examples +echo "Copy generated site to $tmp" +cp -r target/site/* $tmp/piccolo2d +cp -r core/target/site/* $tmp/piccolo2d-core +cp -r extras/target/site/* $tmp/piccolo2d-extras +cp -r examples/target/site/* $tmp/piccolo2d-examples -# issue the (local) svn commands (delete/add) +echo "Issue local svn delete/add commands" cd $tmp find . -type f | xargs svn status --verbose 2> /dev/null | egrep -e "^\!" | cut --characters=9- | xargs --no-run-if-empty $svn delete find . -mindepth 1 -type d | xargs --no-run-if-empty svn status --verbose 2> /dev/null | egrep -e "^\?" | cut --characters=9- | xargs --no-run-if-empty $svn add find . -type f | xargs svn status --verbose 2> /dev/null | egrep -e "^\?" | cut --characters=9- | xargs --no-run-if-empty $svn add --non-recursive -# finish +echo "Set mime-type" find . -name "*.html" | xargs $svn propset svn:mime-type text/html find . -name "*.xml" | xargs $svn propset svn:mime-type text/xml find . -name "*.css" | xargs $svn propset svn:mime-type text/css find . -name "*.gif" | xargs $svn propset svn:mime-type image/gif find . -name "*.png" | xargs $svn propset svn:mime-type image/png -$svn $msg commit . -$svn update -$svn status +#$svn $msg commit . +#$svn update +#$svn status # go back where we came from cd $cwd +echo "###########################################################" +echo " the site is generated and ready to upload." +echo " " +echo " Review the changes:" +echo " $ svn status $tmp" +echo " " +echo " Do the upload:" +echo " $ svn commit $tmp" + diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt new file mode 100644 index 0000000..282dac9 --- /dev/null +++ b/src/site/apt/index.apt @@ -0,0 +1,11 @@ + ------ + Piccolo2D + +Lorem ipsum + + dolor sit amet, consectetur adipisci elit. Nunc ac ante sed ante imperdiet auctor. Fusce dignissim, magna eu feugiat tincidunt, nibh metus tincidunt augue, quis ullamcorper lorem pede a ante. Proin congue nisl a arcu. Donec et elit. Etiam ac eros nec metus molestie aliquam. Nullam vestibulum molestie magna. In varius quam in nulla luctus tristique. Nam et eros. Sed vitae sem a velit mattis dapibus. Sed blandit, sapien auctor adipiscing viverra, purus urna fermentum wisi, id luctus tortor augue et ligula. In quis libero. Sed urna arcu, malesuada in, adipiscing vitae, vehicula vitae, magna. Phasellus sit amet nisl at erat aliquet eleifend. Quisque malesuada porta elit. Nulla nec orci ac leo posuere eleifend. Aliquam ultrices vulputate velit. Vestibulum vitae ipsum. Vestibulum pede erat, cursus nec, porttitor ac, accumsan ut, neque. + +* Aenean vel mi. + + Donec blandit mauris convallis lacus. Sed a urna. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus hendrerit. Curabitur libero leo, laoreet nec, lobortis in, auctor malesuada, metus. Vivamus ultrices eros eget pede. Morbi facilisis leo ut elit. Fusce viverra iaculis risus. Pellentesque posuere faucibus sem. Praesent et felis ac lorem laoreet venenatis. + diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..e8c2b0a --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,29 @@ + + + + + Piccol2D + http://piccolo2d.googlecode.com/svn/site/images/Piccolo2D-Logo.png + http://piccolo2d.googlecode.com/svn/site/piccolo2d.java/release-1.3-SNAPSHOT/piccolo2d/index.html + + + + + + + + + + + + + + + +