#!/bin/sh
set -e

#DEBHELPER#

# delete starplot directory in /usr/local if empty
rmdir /usr/local/share/starplot || true
if [ -L /usr/share/starplot/local ]; then
	rm -f /usr/share/starplot/local
fi

# delete data files in /usr/share/starplot
for file in /usr/share/starplot/*.stars ; do rm -rf "$file" ; done

