]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
add config.h if present in source array
authormar77i <mysatyre@gmail.com>
Thu, 25 Jun 2015 08:50:30 +0000 (10:50 +0200)
committermar77i <mysatyre@gmail.com>
Thu, 25 Jun 2015 08:50:30 +0000 (10:50 +0200)
PKGBUILD

index 92713c4d2e4e64460b2e32df91b87947428e5493..e1995a4caa0db275a3e14f60286636a386760930 100644 (file)
--- 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