#!/bin/sh

FILE=$1

if [ "$FILE" = "" ]; then
   echo Usage: $0 FILE
   exit
fi

if [ ! -f "$FILE" ]; then
   echo File $FILE does not exist
   exit
fi

echo -n "."

svn -q propset svn:mime-type text/html $FILE
svn -q propset svn:eol-type  native    $FILE

perl -i -ne 'print unless (/Generated by javadoc /);' $FILE
/bin/rm -f "$FILE.bak"
