Repository navigation
modified Makefile issue #120 on OS X - #122
Conversation
ximeg
left a comment
There was a problem hiding this comment.
@bryanhanson please create a new commit that reverts the addition of the file Vignettes/fileio/txt.Shimadzu/UV-VIS-NIR.TXT. The rest is great!
| version https://git-lfs.github.com/spec/v1 | ||
| oid sha256:baabcf0c9248f75c3f48fbf6640cefdb172a5558e47cc9bf72e847ef994df334 | ||
| size 16956 | ||
| [SUMMARY] |
There was a problem hiding this comment.
Was it intended to have this file here? Apparently you included it by mistake
There was a problem hiding this comment.
No. New commit created which I think has only Makefile.
There was a problem hiding this comment.
I reverted the accidentally changed file. Here is how you do it:
$ git checkout issue/120-daytime
Switched to branch 'issue/120-daytime'
Your branch is up to date with 'origin/issue/120-daytime'.
$ git pull
Already up to date.
#######################################
# Restore the last version from `develop` branch
#######################################
$ git checkout develop -- Vignettes/fileio/txt.Shimadzu/UV-VIS-NIR.TXT
$ git add Vignettes/fileio/txt.Shimadzu/UV-VIS-NIR.TXT
#######################################
# Display all the changes that this branch introduces
#######################################
$ git diff develop
diff --git a/Makefile b/Makefile
index 6d66ca1..cc120c0 100644
--- a/Makefile
+++ b/Makefile
@@ -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
$ git commit
$ git push
| @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 |
There was a problem hiding this comment.
It works under Ubuntu without any issues!
There was a problem hiding this comment.
@eoduniyi what command did you run? make bootstrap or make? Did you get all large files with git lfs pull before?
|
The problem Erick sees is #111 and I still see it — my change to the Makefile was not intended to fix this, I believe only Claudia knows how to track this one down.
… On May 12, 2020, at 5:37 PM, RKiselev ***@***.***> wrote:
@ximeg commented on this pull request.
In Makefile <#122 (comment)>:
> @@ -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
@eoduniyi <https://github.com/eoduniyi> what command did you run? make bootstrap or make? Did you get all large files with git lfs pull before?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#122 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABCIPTI57DNOHSBQKZCFIDRRG6QBANCNFSM4M7DYJBA>.
|
|
@ximeg : |
ximeg
left a comment
There was a problem hiding this comment.
Now only the Makefile is updated. It works under Ubuntu
…d be cloned rather than downloaded for building.
| **NOTE:** the hyperSpec repository uses `git lfs` for more efficient storage and handling of our collection of spectra files in various formats. | ||
| *Downloading* a zip of the repository will leave you with so-called [pointer files]() only. These are not sufficient to build **hyperSpec**. |


This is a simple change to accommodate the fact that Mac OS X does not have
find -daytime. I think the new incantation will work on any platform, and will causeDESCRIPTIONto be updated (by modifying the version number to include the current date) if it is > 24 hrs old. I hope.I'm asking Erick (on Mac) & Roman (Ubuntu) to check.
Looks like there is a 2nd file in this commit for reasons I don't understand: https://github.com/cbeleites/hyperSpec/compare/develop...issue/120-daytime?expand=1#diff-95065ba29e79be839ee5ea1575847a70 This is not shown in my
git statusprior to push, and it's probably created by the build process and irrelevant here. I don't think it should be merged, not sure how to disable that at this point however.