This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 6479455b8db [SPARK-37474][R][DOCS][FOLLOW-UP] Make SparkR 
documentation able to build on Mac OS
6479455b8db is described below

commit 6479455b8db40d584045cdb13e6c3cdfda7a2c0b
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Mon May 2 17:50:01 2022 +0900

    [SPARK-37474][R][DOCS][FOLLOW-UP] Make SparkR documentation able to build 
on Mac OS
    
    ### What changes were proposed in this pull request?
    
    Currently SparkR documentation fails because of the usage `grep -oP `. Mac 
OS does not have this.
    This PR fixes it via using the existing way used in the current scripts at: 
https://github.com/apache/spark/blob/0494dc90af48ce7da0625485a4dc6917a244d580/R/check-cran.sh#L52
    
    ### Why are the changes needed?
    
    To make the dev easier.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually tested via:
    
    ```bash
    cd R
    ./create-docs.sh
    ```
    
    Closes #36423 from HyukjinKwon/SPARK-37474.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 R/create-docs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R/create-docs.sh b/R/create-docs.sh
index 1774d5870de..4867fd99e64 100755
--- a/R/create-docs.sh
+++ b/R/create-docs.sh
@@ -55,7 +55,7 @@ pushd pkg/html
 
 
 # Determine Spark(R) version
-SPARK_VERSION=$(grep -oP "(?<=Version:\ ).*" ../DESCRIPTION)
+SPARK_VERSION=$(grep Version "../DESCRIPTION" | awk '{print $NF}')
 
 # Update url
 sed "s/{SPARK_VERSION}/$SPARK_VERSION/" ../pkgdown/_pkgdown_template.yml > 
../_pkgdown.yml


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to