#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG  				#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3    	#
#							#
# Copyright 2007 - 2015 Christopher Bratusek		#
#							#
#########################################################

clean () {

	echo -e "\n${SMOOTHBLUE} cleaning up\n"
	CLEAN_FILES=( data/bashstyle data/bashstyle-ng.pc ui/bashstyle?.ui.h
			data/bashstyle.sh rc/nx-rc i18n/??/*.mo i18n/*.pot
			.configure/results .make/build_done ui/#bashstyle?.ui# )

	CL_NUM=${#CLEAN_FILES[@]}
	local CUR_NUM=1

	for file in ${CLEAN_FILES[@]}; do
		echo -e "\t${WHITE}  * ${SILVER}[$CUR_NUM/$CL_NUM]${CYAN} ${file}"
		local CUR_NUM=$(($CUR_NUM+1))
		rm -f "${file}"
	done
	echo
	tput sgr0

}
