Skip to content

Commit 971bba1

Browse files
committed
Update release tools
1 parent a995643 commit 971bba1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package/build_boards_manager_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cat << EOF > exclude.txt
3939
package
4040
EOF
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
4444
rsync -a --exclude-from 'exclude.txt' $srcdir/ $outdir/
4545
rm exclude.txt

package/esp8266-arudino-doc.bash

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ set -e
2424

2525
# some variable definitions
2626
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)"
2930
release_date=$(date "+%b_%d,_%Y") # format for badge link
3031
build_date=$(date "+%b %d, %Y")
3132
destination_path="$tmp_path/doc"
@@ -62,7 +63,8 @@ mkdir -p $destination_path/$version
6263
cp -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

@@ -113,4 +115,3 @@ popd
113115

114116
# grab badge
115117
wget -q -O $destination_path/$version/badge.svg "https://img.shields.io/badge/updated-$release_date-blue.svg"
116-

0 commit comments

Comments
 (0)