Skip to content

Commit

Permalink
add build exclude patterns for vim & emacs
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87718 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
maechler committed Feb 14, 2025
1 parent 69e84f0 commit 9bd6275
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@
\item Error messages produced by \code{tools::parseLatex()} are
now more readable (\PR{18855}).
\item \command{R CMD build <pkg>} excludes more file patterns
when it tars the <pkg> directory, fixing both \PR{18432} and
\PR{18434}, for \command{vim} and \command{GNU Global}
\command{emacs} users, thanks to \I{Dirk Eddelbuettel}'s patch.
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/library/tools/R/build.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File src/library/tools/R/build.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2024 The R Core Team
# Copyright (C) 1995-2025 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -54,7 +54,7 @@ get_exclude_patterns <- function()
c("^\\.Rbuildignore$",
"(^|/)\\.DS_Store$",
"^\\.(RData|Rhistory)$",
"~$", "\\.bak$", "\\.swp$",
"~$", "\\.bak$", "\\.sw.$",
"(^|/)\\.#[^/]*$", "(^|/)#[^/]*#$",
## Outdated ...
"^TITLE$", "^data/00Index$",
Expand All @@ -68,6 +68,8 @@ get_exclude_patterns <- function()
"^src/so_locations$",
## Sweave detrius
"^inst/doc/Rplots\\.(ps|pdf)$"
## GNU Global
, "^(GPATH|GRTAGS|GTAGS)$"
)


Expand Down

0 comments on commit 9bd6275

Please sign in to comment.