File tree 1 file changed +18
-1
lines changed
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 8
8
VERSION=` cat platform.txt | grep " version=" | cut -f2 -d" =" `
9
9
echo $VERSION
10
10
11
+ FILENAME=ArduinoCore-renesas-$VERSION .tar.bz2
12
+
11
13
CORE_BASE=` basename $PWD `
12
14
cd ..
13
- tar --exclude=' *.vscode*' --exclude=' *.git*' --exclude=' *e2studio*' --exclude=' *extras*' -cjhvf ArduinoCore-renesas- $VERSION .tar.bz2 $CORE_BASE
15
+ tar --exclude=' *.vscode*' --exclude=' *.git*' --exclude=' *e2studio*' --exclude=' *extras*' -cjhvf $FILENAME $CORE_BASE
14
16
cd -
17
+
18
+ mv ../$FILENAME .
19
+
20
+ CHKSUM=` sha256sum $FILENAME | awk ' { print $1 }' `
21
+ SIZE=` wc -c $FILENAME | awk ' { print $1 }' `
22
+
23
+ cat extras/package_index.json.template |
24
+ # sed "s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/" |
25
+ # sed "s/%%CURR_TIME%%/${CURR_TIME_SED}/" |
26
+ sed " s/%%VERSION%%/${VERSION} /" |
27
+ sed " s/%%FILENAME%%/${FILENAME} /" |
28
+ sed " s/%%CHECKSUM%%/${CHKSUM} /" |
29
+ sed " s/%%SIZE%%/${SIZE} /" > package_renesas_${VERSION} _index.json
30
+
31
+ cat package_renesas_${VERSION} _index.json
You can’t perform that action at this time.
0 commit comments