File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,24 @@ Get involved:
1515
1616More information about the C++ standard can be found at `isocpp.org <http://isocpp.org/std >`_.
1717
18- ---------------------------
19- Getting Started on Mac OS X
20- ---------------------------
18+ ------------------------
19+ Getting Started on macOS
20+ ------------------------
2121
22- Install the `MacTeX distribution <http ://tug.org/mactex/ >`_.
22+ Install the `MacTeX distribution <https ://tug.org/mactex/ >`_.
2323
24- If you are on a slow network, you'll want to get the `BasicTeX package <http ://tug.org/mactex/morepackages.html >`_ instead,
24+ If you are on a slow network, you'll want to get the `BasicTeX package <https ://tug.org/mactex/morepackages.html >`_ instead,
2525then run the following command to install the other packages that the draft requires::
2626
2727 sudo tlmgr install latexmk isodate substr relsize ulem fixme rsfs extract layouts enumitem l3packages l3kernel imakeidx splitindex xstring
2828
29+ Using homebrew on macOS
30+ =======================
31+
32+ Instead of downloading packages from internet, you can use `HomeBrew package manager <https://brew.sh> ` to install all is needed to build the draft and run checks on it:
33+
34+ brew install mactex gnu-sed
35+
2936---------------------------------------
3037Getting Started on Debian-based Systems
3138---------------------------------------
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ function fail() {
1111 ! sed ' s/^\(.\+\.tex\):/file=\1::/;s/^/::error /' | grep .
1212}
1313
14+ # If we detect GNU sed (on macOS installed with brew) then we will use it.
15+ # Otherwise the script can fail on macOS which ships with BSD sed.
16+ if command -v gsed > /dev/null 2>&1 ; then
17+ GSED=$( exec command -v gsed)
18+ sed () {
19+ ${GSED} " $@ "
20+ }
21+ fi
1422
1523# Discover "Overfull \[hv]box" and "Reference ... undefined" messages from LaTeX.
1624sed -n ' /\.tex/{s/^.*\/\([-a-z0-9]\+\.tex\).*$/\1/;h};
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ function fail() {
2121 grep .
2222}
2323
24+ # If we detect GNU sed (on macOS installed with brew) then we will use it.
25+ # Otherwise the script can fail on macOS which ships with BSD sed.
26+ if command -v gsed > /dev/null 2>&1 ; then
27+ GSED=$( exec command -v gsed)
28+ sed () {
29+ ${GSED} " $@ "
30+ }
31+ fi
2432
2533# We require GNU tools.
2634sed --version | grep -Fqe " GNU sed" || { echo " sed is not GNU sed" ; exit 1; }
You can’t perform that action at this time.
0 commit comments