#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG  				#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3    	#
#							#
# Copyright 2007 - 2017 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
	     rc/2048/*.sh:${DATADIR}/rc/2048
	     data/vim/colors/*:${DATADIR}/vim/colors
	     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
	    rc/2048/2048:${DATADIR}/rc/2048)

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} )
