File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ cat << EOF > exclude.txt
3939package
4040EOF
4141# Also include all files which are ignored by git
42- git ls-files --other --ignored --exclude-standard -- directory >> exclude.txt
42+ git ls-files --other --directory >> exclude.txt
4343# Now copy files to $outdir
4444rsync -a --exclude-from ' exclude.txt' $srcdir / $outdir /
4545rm exclude.txt
Original file line number Diff line number Diff line change 2424
2525# some variable definitions
2626tmp_path=$1
27- arduinoESP_src=" $tmp_path /arduino"
28- version=" $( git --work-tree=$arduinoESP_src describe --tags --always) "
27+ doc_src_path=$2
28+ arduinoESP_src=$( cd $PWD /..; pwd)
29+ version=" $( git --work-tree=$arduinoESP_src --git-dir=$arduinoESP_src /.git describe --tags --always) "
2930release_date=$( date " +%b_%d,_%Y" ) # format for badge link
3031build_date=$( date " +%b %d, %Y" )
3132destination_path=" $tmp_path /doc"
@@ -62,7 +63,8 @@ mkdir -p $destination_path/$version
6263cp -R $arduinoESP_src /doc/* $destination_path /src
6364
6465# download doc template
65- git clone $doc_template_url $destination_path /build
66+ rsync -av $doc_src_path / $destination_path /build/
67+ # git clone $doc_template_url $destination_path/build
6668
6769# create versions.html file
6870
113115
114116# grab badge
115117wget -q -O $destination_path /$version /badge.svg " https://img.shields.io/badge/updated-$release_date -blue.svg"
116-
You can’t perform that action at this time.
0 commit comments