File tree 2 files changed +6
-5
lines changed
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
39
39
package
40
40
EOF
41
41
# 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
43
43
# Now copy files to $outdir
44
44
rsync -a --exclude-from ' exclude.txt' $srcdir / $outdir /
45
45
rm exclude.txt
Original file line number Diff line number Diff line change 24
24
25
25
# some variable definitions
26
26
tmp_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) "
29
30
release_date=$( date " +%b_%d,_%Y" ) # format for badge link
30
31
build_date=$( date " +%b %d, %Y" )
31
32
destination_path=" $tmp_path /doc"
@@ -62,7 +63,8 @@ mkdir -p $destination_path/$version
62
63
cp -R $arduinoESP_src /doc/* $destination_path /src
63
64
64
65
# 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
66
68
67
69
# create versions.html file
68
70
113
115
114
116
# grab badge
115
117
wget -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