I added build_cms.sh and pinged INFRA to setup new build

http://svn.apache.org/repos/asf/struts/site/trunk/


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/6/6 Lukasz Lenart <[email protected]>:
> Hi,
>
> Current process of updating draft docs isn't optimal and I'm going to
> automate it a bit. I have registered an issue with INFRA and will
> prepare a small branch in Struts repo to keep those scripts.
>
> https://issues.apache.org/jira/browse/INFRA-6350
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------- Forwarded message ----------
> From: Lukasz Lenart <[email protected]>
> Date: 2013/6/4
> Subject: Update draft docs
> To: [email protected]
>
>
> Hi,
>
> I would like to periodically update Draft docs (development version of
> docs) with below script - I'm using it right now to perform manual
> update (from my account at people.a.o). It can be run every 6h or
> something.
>
> Does it make sense?
>
> ########################################
> #!/bin/sh
> svn co 
> https://svn.apache.org/repos/infra/websites/production/struts/content/development/2.x/docs
> struts2-draft-docs --username $USERNAME --password $PASSWORD
> --no-auth-cache --non-interactive
>
> # Grab docs from Confluence
> wget -erobots=off -nH -nv -E -L --directory-prefix=cwiki
> --no-check-certificate -r https://cwiki.apache.org/WW/
>
> # Remove the old docs
> rm -R struts2-draft-docs/*
>
> # Move the new docs
> mv cwiki/WW/* struts2-draft-docs/
>
> cd struts2-draft-docs
>
> touch PLACEHOLDER
>
> # Check for changes
> DIFF=`svn status`
> if [ -n "$DIFF" ]; then
>         echo "Changes detected - add and commit"
>         # Add all the file
>         svn add * --force --username $USERNAME --password $PASSWORD
> --no-auth-cache --non-interactive
>         # Commit changes
>         svn commit -m "Updates draft docs" --username $USERNAME --password
> $PASSWORD --no-auth-cache --non-interactive
> else
>         echo "No changes detected"
> fi
>
> cd ..
>
> # Cleanup
> rm -R struts2-draft-docs
> rm -R cwiki
>
> echo "Success!"
> ########################################
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to