Skip to content

Commit 9bd6275

Browse files
author
maechler
committed
add build exclude patterns for vim & emacs
git-svn-id: https://svn.r-project.org/R/trunk@87718 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 69e84f0 commit 9bd6275

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,11 @@
571571
572572
\item Error messages produced by \code{tools::parseLatex()} are
573573
now more readable (\PR{18855}).
574+
575+
\item \command{R CMD build <pkg>} excludes more file patterns
576+
when it tars the <pkg> directory, fixing both \PR{18432} and
577+
\PR{18434}, for \command{vim} and \command{GNU Global}
578+
\command{emacs} users, thanks to \I{Dirk Eddelbuettel}'s patch.
574579
}
575580
}
576581
}

src/library/tools/R/build.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File src/library/tools/R/build.R
22
# Part of the R package, https://www.R-project.org
33
#
4-
# Copyright (C) 1995-2024 The R Core Team
4+
# Copyright (C) 1995-2025 The R Core Team
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@ get_exclude_patterns <- function()
5454
c("^\\.Rbuildignore$",
5555
"(^|/)\\.DS_Store$",
5656
"^\\.(RData|Rhistory)$",
57-
"~$", "\\.bak$", "\\.swp$",
57+
"~$", "\\.bak$", "\\.sw.$",
5858
"(^|/)\\.#[^/]*$", "(^|/)#[^/]*#$",
5959
## Outdated ...
6060
"^TITLE$", "^data/00Index$",
@@ -68,6 +68,8 @@ get_exclude_patterns <- function()
6868
"^src/so_locations$",
6969
## Sweave detrius
7070
"^inst/doc/Rplots\\.(ps|pdf)$"
71+
## GNU Global
72+
, "^(GPATH|GRTAGS|GTAGS)$"
7173
)
7274

7375

0 commit comments

Comments
 (0)