Skip to content

Commit

Permalink
modified Makefile issue #120 on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhanson committed May 12, 2020
1 parent 9d6bdf6 commit 8e5b47c
Show file tree
Hide file tree
Showing 2 changed files with 1,155 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ roxygenize: DESCRIPTION hyperSpec/R/*.R
@echo "Roxygenize"
@Rscript --vanilla -e "library (methods, quietly=TRUE, verbose = FALSE); library (devtools, quietly=TRUE, verbose = FALSE); document ('hyperSpec')"

DESCRIPTION: $(shell find hyperSpec -maxdepth 1 -daystart -not -ctime 0 -name "DESCRIPTION") #only if not modified today
DESCRIPTION: $(shell find hyperSpec -maxdepth 1 -not -ctime 1 -name "DESCRIPTION") #only if not modified in the past 24 hrs
@echo update DESCRIPTION
@sed "s/\(^Version: .*-\)\(20\)\?[0-9][0-9][0-1][0-9][0-3][0-9]\(.*\)$$/\1$(DATE)\3/" hyperSpec/DESCRIPTION > .DESCRIPTION
@sed "s/\(^Date: .*\)20[0-9][0-9]-[0-1][0-9]-[0-3][0-9]\(.*\)$$/\1`date +%F`\2/" .DESCRIPTION > hyperSpec/DESCRIPTION
Expand Down
Loading

0 comments on commit 8e5b47c

Please sign in to comment.