From: mar77i Date: Thu, 25 Jun 2015 08:50:30 +0000 (+0200) Subject: add config.h if present in source array X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c5b97b9a4779d9307ebf9a21ded89fce9be19444;p=perso%2FImmae%2FConfig%2FAUR.git add config.h if present in source array --- diff --git a/PKGBUILD b/PKGBUILD index 92713c4..e1995a4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -41,6 +41,9 @@ prepare() { sed '/@tic/d' -i Makefile for file in "${source[@]}"; do if [[ "$file" != *.diff ]]; then + # add config.h if present in source array + # Note: this supersedes the above sed to config.def.h + [[ "$file" == "config.h" ]] && cp "$SRCDEST/$file" . continue fi # add all patches present in source array