From 279c5d573248506b03e0042de4df936bc625bcea Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 3 Apr 2006 13:53:43 +0000 Subject: [PATCH] detect more stuff that probably does not belong in PLISTs, based on the filenames (vim .swp and emacs ~ files) Found out by Andreas Kahari --- infrastructure/install/make-plist | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/infrastructure/install/make-plist b/infrastructure/install/make-plist index 1d25bb7df76..381ba7ac458 100755 --- a/infrastructure/install/make-plist +++ b/infrastructure/install/make-plist @@ -1,6 +1,6 @@ #! /usr/bin/perl -# $OpenBSD: make-plist,v 1.78 2005/12/26 19:29:34 bernd Exp $ -# Copyright (c) 2004 Marc Espie +# $OpenBSD: make-plist,v 1.79 2006/04/03 13:53:43 espie Exp $ +# Copyright (c) 2004-2006 Marc Espie # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -935,6 +935,14 @@ sub handle_file print STDERR "make-plist: generated plist may contain patched file\n"; print STDERR "\t$short\n"; } + if ($short =~ /\/\.[^\/]*\.swp$/) { + print STDERR "make-plist: generated plist may contain vim swap file\n"; + print STDERR "\t$short\n"; + } + if ($short =~ /\~$/) { + print STDERR "make-plist: generated plist may contain emacs temp file\n"; + print STDERR "\t$short\n"; + } if (($type eq 'library' || $type eq 'plugin') && (!defined $item) && !$shared_only) { $p->{wantshared} = 1; $p = $p->{shared};