Skip to content

modified Makefile issue #120 on OS X - #122

Merged
ximeg merged 6 commits into
developfrom
issue/120-daytime
May 13, 2020
Merged

ximeg merged 6 commits into
developfrom
issue/120-daytime

Conversation

@bryanhanson

@bryanhanson bryanhanson commented May 12, 2020 •

Copy link
Copy Markdown
Collaborator

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 cause DESCRIPTION to 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 status prior 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.

@ximeg ximeg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it intended to have this file here? Apparently you included it by mistake

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. New commit created which I think has only Makefile.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 

Comment thread Makefile Outdated
@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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works under Ubuntu without any issues!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still having trouble...
Screen Shot 2020-05-12 at 4 20 23 PM

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eoduniyi what command did you run? make bootstrap or make? Did you get all large files with git lfs pull before?

@bryanhanson

bryanhanson commented May 12, 2020 via email

Copy link
Copy Markdown
Collaborator Author

@eoduniyi

Copy link
Copy Markdown
Collaborator

@ximeg :
Screen Shot 2020-05-12 at 4 43 00 PM

@ximeg ximeg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now only the Makefile is updated. It works under Ubuntu

@bryanhanson bryanhanson reopened this May 12, 2020
…d be cloned rather than downloaded for building.
Comment thread README.md Outdated
Comment on lines +28 to +29
**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**.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this comment

@ximeg
ximeg merged commit 0dae727 into develop May 13, 2020
@ximeg
ximeg deleted the issue/120-daytime branch May 13, 2020 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants