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

DATA_FILES=( ui/*.{py,ui}:${DATADIR}/ui
	     rc/bashstyle-rc:${DATADIR}/rc
	     rc/internal/*:${DATADIR}/rc/internal
	     rc/settings/*:${DATADIR}/rc/settings
	     rc/styles/*:${DATADIR}/rc/styles
	     data/*.ini:${DATADIR}
	     data/*.desktop:${DESKTOPDIR} )

DOC_FILES=( doc/html/*.html:${DOCDIR} )
MAN_FILES=( doc/bashstyle.1:${MANDIR} )

for lang in ${APP_LANGUAGES}; do
	LOCALE_REMOVE=( ${LOCALE_REMOVE[@]} ${LOCALEDIR}/${lang}/{bashstyle,bashstyle-rc}.mo)
	LOCALE_FILES=( i18n/${lang}/*.mo:${LOCALEDIR}/${lang}/LC_MESSAGES )
done

BIN_FILES=( data/bashstyle:${BINDIR}
	    data/bashstyle-config-helper:${BINDIR}
	    rc/functions/*:${DATADIR}/rc/functions)

ICON_FILES=( data/icons/*.png:${ICONDIR} )

PC_FILES=( data/bashstyle-ng.pc:${PCDIR} )

REMOVE_FILES=( ${LOCALE_REMOVE[@]}
	       ${BINDIR}/bashstyle
	       ${ICONDIR}/bs-ng*.png
	       ${PCDIR}/bashstyle-ng.pc
	       ${DATADIR}
	       ${DOCDIR} )
