#!/bin/sh
# Removes a file if it's empty
# Usage: self file
if test -f "$1" -a ! -s "$1"; then # regular file and not non-empty
svn rm --force "$1" 2>/dev/null || rm "$1" # try svn first
fi