From 9c620e4afa03e63ddaff2979396144de8d9298a5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 13 Jul 2003 18:58:03 +0000 Subject: * Generate the scripts so that we can substitute the prefix etc. correctly. * Fixed nix-switch. --- scripts/Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/Makefile.am') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 2f4dbacc93f0..a8cbe8222b07 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,9 +1,19 @@ bin_SCRIPTS = nix-switch nix-collect-garbage \ nix-pull nix-push +noinst_SCRIPTS = nix-profile.sh + install-exec-local: $(INSTALL) -d $(sysconfdir)/profile.d $(INSTALL_PROGRAM) nix-profile.sh $(sysconfdir)/profile.d/nix.sh $(INSTALL) -d $(sysconfdir)/nix # !!! don't overwrite local modifications $(INSTALL_DATA) prebuilts.conf $(sysconfdir)/nix/prebuilts.conf + +%: %.in Makefile + sed \ + -e s^@prefix\@^$(prefix)^g \ + -e s^@sysconfdir\@^$(sysconfdir)^g \ + -e s^@localstatedir\@^$(localstatedir)^g \ + < $< > $@ || rm $@ + chmod +x $@ -- cgit 1.4.1