summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-15 17:19:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:25 -0500
commit4bc1cc52ec40840afad95942aecf4841b3012451 (patch)
treee1684e095be8ddd586b57cdfdbb983fc184e601e /source4
parent275cf2b364983290288b2423365ae9c73fc53601 (diff)
downloadsamba-4bc1cc52ec40840afad95942aecf4841b3012451.tar.gz
samba-4bc1cc52ec40840afad95942aecf4841b3012451.tar.bz2
samba-4bc1cc52ec40840afad95942aecf4841b3012451.zip
r12256: Add helper script for installing pkg-config files
(This used to be commit c05ffb05c85475669d72afcc183cfb54bd7c73d5)
Diffstat (limited to 'source4')
-rw-r--r--source4/main.mk2
-rwxr-xr-xsource4/script/installpc.sh16
2 files changed, 17 insertions, 1 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 585265bc24..96b365dbd2 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -113,7 +113,7 @@ installmisc: installdirs
@$(SHELL) $(srcdir)/script/installmisc.sh $(srcdir) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR)
installpc: installdirs
- @cp $(PC_FILES) $(DESTDIR)$(PKGCONFIGDIR)
+ @$(SHELL) $(srcdir)/script/installpc.sh $(srcdir) $(DESTDIR)$(PKGCONFIGDIR) $(PC_FILES)
uninstall: uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader
diff --git a/source4/script/installpc.sh b/source4/script/installpc.sh
new file mode 100755
index 0000000000..81ca2f8145
--- /dev/null
+++ b/source4/script/installpc.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# install miscellaneous files
+
+SRCDIR="$1"
+PKGCONFIGDIR="$2"
+shift
+shift
+
+cd $SRCDIR || exit 1
+
+for I in $*
+do
+ cp $I $PKGCONFIGDIR
+done
+
+exit 0