forked from nativelibs4java/nativelibs4java
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfixJavaDocProps
More file actions
19 lines (13 loc) · 802 Bytes
/
fixJavaDocProps
File metadata and controls
19 lines (13 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
JDOC_ROOT=target/site/apidocs
find $JDOC_ROOT/ -iname "*.html" -exec svn add '{}' ';' 2> /dev/null
# See http://stuffthathappens.com/blog/2007/11/09/howto-publish-javadoc-on-google-code/
find $JDOC_ROOT/ -iname "*.html" -exec svn propset svn:mime-type text/html '{}' ';'
find $JDOC_ROOT/ -iname "*.css" -exec svn propset svn:mime-type text/css '{}' ';'
find $JDOC_ROOT/ -iname "*.txt" -exec svn propset svn:mime-type text/plain '{}' ';'
find $JDOC_ROOT/ -iname "*.png" -exec svn propset svn:mime-type image/png '{}' ';'
find $JDOC_ROOT/ -iname "*.jpg" -exec svn propset svn:mime-type image/jpeg '{}' ';'
find $JDOC_ROOT/ -iname "*.jpeg" -exec svn propset svn:mime-type image/jpeg '{}' ';'
if [[ ! -z "$COMMIT" ]] ; then
svn commit $JDOC_ROOT -m "Javadoc propset update" ;
fi