Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare source tree for pointing GitHub Pages to master docs/ #1503

Merged
merged 9 commits into from
Aug 29, 2016

Conversation

starius
Copy link
Member

@starius starius commented Aug 22, 2016

See #1500

@tonytheodore
Copy link
Member

Looking good, thanks! A couple of additional comments:

  • assets should be moved to docs/
  • remove gh-pages push in tools/travis-push.sh (now or after merge)
  • docs/release-process.txt can be removed

Subject: [PATCH] add Batchfile with test to run on host


diff --git a/all-tests-openmp-validation.bat b/all-tests-openmp-validation.bat
Copy link
Member

Choose a reason for hiding this comment

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

The second patch, openmp-validation-2-test-crlf.patch, creates a batch file with crlf line endings. There's special handling for these in .gitattributes and I'm not sure it can be consolidated.

Copy link
Member

Choose a reason for hiding this comment

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

For reasons I don't fully understand, the crlf endings are preserved in the body of the patch and the file is created correctly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why should it work incorrectly? We already have many DOS line endings patches created with patch-tool-mxe. File openmp-validation-2-test-crlf.patch had mixed line endings: DOS for Copyright header and diff content and Unix for diff header.

Could you explain the problem with DOS line endings and how .gitattributes approaches it, please?

Copy link
Member

Choose a reason for hiding this comment

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

I can't figure out what the initial problem with DOS line endings was - very likely some local misconfiguration as .gitattributes selectively does what git config --global core.autocrlf input does.

Copy link
Member Author

Choose a reason for hiding this comment

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

.gitattributes was added in commit b2bef6b but it does not provide the background.

IMHO, we can stay with consolidated patches, remove .gitattributes and revisit the problem if it happens again.

Copy link
Member

Choose a reason for hiding this comment

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

Agreed.

starius added a commit to LuaAndC/mxe that referenced this pull request Aug 23, 2016
starius added a commit to LuaAndC/mxe that referenced this pull request Aug 23, 2016
@starius
Copy link
Member Author

starius commented Aug 23, 2016

Amended:

  • assets moved to docs/
  • gh-pages push removed in tools/travis-push.sh
  • docs/release-process.txt removed
  • unneeded change of "See index.html for further information" in Makefile reverted

@vog
Copy link
Member

vog commented Aug 23, 2016

Note that the Makefile does need a change, though, from "See index.html" to "See docs/index.html".

@starius
Copy link
Member Author

starius commented Aug 23, 2016

Note that the Makefile does need a change, though, from "See index.html" to "See docs/index.html".

Done.

@tonytheodore
Copy link
Member

Thanks @starius, this all looks good and ready to go.

@vog, github thinks there are conflicts but there weren't any on local merge.

openmp-validation-2-test-crlf.patch  was the only file
with \r byte in Copyright Header.

See mxe#1500
The following script was applied:

    sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')

    sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
        $(git grep -l 'part of MXE.*See index.html')

    before='This file is part of MXE. See index.html for further information.'
    after='This file is part of MXE. See LICENSE.md for licensing information.'
    sed "s/$before/$after/" -i $(git grep -l 'part of MXE')

Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.

See mxe#1500 (comment)
index.html: make docs/build-matrix.html a link
mxe-activate: add versions.json
add .PHONY for build-matrix.html
@starius
Copy link
Member Author

starius commented Aug 27, 2016

Rebased.

@tonytheodore, GitHub seems to be stricter than git merge: file build-matrix.html was updated in #1507 and moved to docs/ in this pull request. git rebase managed to fix this automatically:

$ git pull --rebase upstream master 
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
From github.com:mxe/mxe
 * branch            master     -> FETCH_HEAD
   46ad578..ac82d04  master     -> upstream/master
First, rewinding head to replay your work on top of it...
Applying: openmp-validation: unify and consolidate the patch
Applying: Copyright headers: point to LICENSE.md and shorten
Applying: rename doc/ to docs/
Applying: mv versions.json build-matrix.html assets docs/
Using index info to reconstruct a base tree...
M       build-matrix.html
M       versions.json
Falling back to patching base and 3-way merge...
Applying: add missing things
Applying: move index.html to docs/
Applying: move CNAME to docs/
Applying: remove docs/release-process.txt
Applying: travis-push.sh: do not push to gh-pages

@vog vog merged commit 1875b2f into mxe:master Aug 29, 2016
@vog
Copy link
Member

vog commented Aug 29, 2016

@starius Thanks for your work!

@starius starius deleted the new-gh-pages branch August 29, 2016 11:25
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.

None yet

3 participants