Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b3b2f44

Browse files
committed
Add extras folder for packagein and CI
1 parent 3f63f29 commit b3b2f44

File tree

5 files changed

+278
-0
lines changed

5 files changed

+278
-0
lines changed

‎extras/pack.hourlybuild.bash‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/bin/bash -ex
2+
3+
# pack.*.bash - Bash script to help packaging avr core releases.
4+
# Copyright (c) 2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
20+
BUILD_NUMBER=1ドル
21+
CURR_TIME=`date "+%Y-%m-%d %H:%M"`
22+
CURR_TIME_SED=`date "+%Y\\-%m\\-%d %H:%M"`
23+
VERSION=9.9.9-Hourly
24+
25+
PWD=`pwd`
26+
FOLDERNAME=`basename $PWD`
27+
THIS_SCRIPT_NAME=`basename 0ドル`
28+
FILENAME=package_avr-hourly-b${BUILD_NUMBER}.tar.bz2
29+
30+
rm -f $FILENAME
31+
32+
# Change name in platform.txt
33+
sed -i "s/name=.*/name=SAMD Hourly Build ${BUILD_NUMBER} (${CURR_TIME})/" platform.txt
34+
35+
cd ..
36+
tar --transform "s|$FOLDERNAME|avr-hourly_b${BUILD_NUMBER}|g" --exclude=extras/** --exclude=.git* --exclude=.idea -cjf $FILENAME $FOLDERNAME
37+
cd -
38+
39+
mv ../$FILENAME .
40+
41+
CHKSUM=`sha256sum $FILENAME | awk '{ print 1ドル }'`
42+
SIZE=`wc -c $FILENAME | awk '{ print 1ドル }'`
43+
44+
cat extras/package_index.json.Hourly.template |
45+
sed "s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/" |
46+
sed "s/%%CURR_TIME%%/${CURR_TIME_SED}/" |
47+
sed "s/%%VERSION%%/${VERSION}/" |
48+
sed "s/%%FILENAME%%/${FILENAME}/" |
49+
sed "s/%%CHECKSUM%%/${CHKSUM}/" |
50+
sed "s/%%SIZE%%/${SIZE}/" > package_avr-hourly-build_index.json
51+

‎extras/pack.pullrequest.bash‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash -ex
2+
3+
# pack.*.bash - Bash script to help packaging avr core releases.
4+
# Copyright (c) 2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
20+
PR_NUMBER=1ドル
21+
BUILD_NUMBER=2ドル
22+
VERSION=`grep version= platform.txt | sed 's/version=//g'`
23+
24+
PWD=`pwd`
25+
FOLDERNAME=`basename $PWD`
26+
THIS_SCRIPT_NAME=`basename 0ドル`
27+
FILENAME=package_avr-b${BUILD_NUMBER}.tar.bz2
28+
29+
rm -f $FILENAME
30+
31+
# Change name in platform.txt
32+
sed -i "s/name=.*/name=SAMD Pull request #${PR_NUMBER} (Build ${BUILD_NUMBER})/" platform.txt
33+
34+
cd ..
35+
tar --transform "s|$FOLDERNAME|avr-PR${PR_NUMBER}_b${BUILD_NUMBER}|g" --exclude=extras/** --exclude=.git* --exclude=.idea -cjf $FILENAME $FOLDERNAME
36+
cd -
37+
38+
mv ../$FILENAME .
39+
40+
CHKSUM=`sha256sum $FILENAME | awk '{ print 1ドル }'`
41+
SIZE=`wc -c $FILENAME | awk '{ print 1ドル }'`
42+
43+
cat extras/package_index.json.PR.template |
44+
sed s/%%PR_NUMBER%%/${PR_NUMBER}/ |
45+
sed s/%%BUILD_NUMBER%%/${BUILD_NUMBER}/ |
46+
sed s/%%VERSION%%/${VERSION}-build-${BUILD_NUMBER}/ |
47+
sed s/%%FILENAME%%/${FILENAME}/ |
48+
sed s/%%CHECKSUM%%/${CHKSUM}/ |
49+
sed s/%%SIZE%%/${SIZE}/ > package_avr-b${BUILD_NUMBER}_index.json
50+

‎extras/pack.release.bash‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash -ex
2+
3+
# pack.*.bash - Bash script to help packaging avr core releases.
4+
# Copyright (c) 2015 Arduino LLC. All right reserved.
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
20+
VERSION=`grep version= platform.txt | sed 's/version=//g'`
21+
22+
PWD=`pwd`
23+
FOLDERNAME=`basename $PWD`
24+
THIS_SCRIPT_NAME=`basename 0ドル`
25+
26+
rm -f avr-$VERSION.tar.bz2
27+
28+
cd ..
29+
tar --transform "s|$FOLDERNAME|$FOLDERNAME-$VERSION|g" --exclude=extras/** --exclude=.git* --exclude=.idea -cjf avr-$VERSION.tar.bz2 $FOLDERNAME
30+
cd -
31+
32+
mv ../avr-$VERSION.tar.bz2 .
33+
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"packages": [
3+
{
4+
"name": "arduino-beta",
5+
"maintainer": "Arduino Betatesting",
6+
"websiteURL": "http://www.arduino.cc/",
7+
"email": "packages@arduino.cc",
8+
"help": {
9+
"online": "http://www.arduino.cc/en/Reference/HomePage"
10+
},
11+
"platforms": [
12+
{
13+
"name": "Arduino AVR core - Hourly build",
14+
"architecture": "avr",
15+
"version": "%%VERSION%%",
16+
"category": "Arduino",
17+
"url": "http://downloads.arduino.cc/Hourly/avr/%%FILENAME%%",
18+
"archiveFileName": "%%FILENAME%%",
19+
"checksum": "SHA-256:%%CHECKSUM%%",
20+
"size": "%%SIZE%%",
21+
"boards": [
22+
{"name": "Arduino Yún"},
23+
{"name": "Arduino/Genuino Uno"},
24+
{"name": "Arduino Uno WiFi"},
25+
{"name": "Arduino Diecimila"},
26+
{"name": "Arduino Nano"},
27+
{"name": "Arduino/Genuino Mega"},
28+
{"name": "Arduino MegaADK"},
29+
{"name": "Arduino Leonardo"},
30+
{"name": "Arduino Leonardo Ethernet"},
31+
{"name": "Arduino/Genuino Micro"},
32+
{"name": "Arduino Esplora"},
33+
{"name": "Arduino Mini"},
34+
{"name": "Arduino Ethernet"},
35+
{"name": "Arduino Fio"},
36+
{"name": "Arduino BT"},
37+
{"name": "Arduino LilyPadUSB"},
38+
{"name": "Arduino Lilypad"},
39+
{"name": "Arduino Pro"},
40+
{"name": "Arduino ATMegaNG"},
41+
{"name": "Arduino Robot Control"},
42+
{"name": "Arduino Robot Motor"},
43+
{"name": "Arduino Gemma"},
44+
{"name": "Adafruit Circuit Playground"},
45+
{"name": "Arduino Yún Mini"},
46+
{"name": "Arduino Industrial 101"},
47+
{"name": "Linino One"}
48+
],
49+
"toolsDependencies": [
50+
{
51+
"packager": "arduino",
52+
"name": "avr-gcc",
53+
"version": "4.9.2-atmel3.5.4-arduino2"
54+
},
55+
{
56+
"packager": "arduino",
57+
"name": "avrdude",
58+
"version": "6.3.0-arduino9"
59+
},
60+
{
61+
"packager": "arduino",
62+
"name": "arduinoOTA",
63+
"version": "1.1.1"
64+
}
65+
]
66+
}
67+
],
68+
"tools": [
69+
]
70+
}
71+
]
72+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"packages": [
3+
{
4+
"name": "arduino-beta",
5+
"maintainer": "Arduino Betatesting",
6+
"websiteURL": "http://www.arduino.cc/",
7+
"email": "packages@arduino.cc",
8+
"help": {
9+
"online": "http://www.arduino.cc/en/Reference/HomePage"
10+
},
11+
"platforms": [
12+
{
13+
"name": "Arduino AVR core - Pull request #%%PR_NUMBER%% (build %%BUILD_NUMBER%%)",
14+
"architecture": "avr",
15+
"version": "%%VERSION%%",
16+
"category": "Arduino",
17+
"url": "http://downloads.arduino.cc/PR/a/%%FILENAME%%",
18+
"archiveFileName": "%%FILENAME%%",
19+
"checksum": "SHA-256:%%CHECKSUM%%",
20+
"size": "%%SIZE%%",
21+
"boards": [
22+
{"name": "Arduino Yún"},
23+
{"name": "Arduino/Genuino Uno"},
24+
{"name": "Arduino Uno WiFi"},
25+
{"name": "Arduino Diecimila"},
26+
{"name": "Arduino Nano"},
27+
{"name": "Arduino/Genuino Mega"},
28+
{"name": "Arduino MegaADK"},
29+
{"name": "Arduino Leonardo"},
30+
{"name": "Arduino Leonardo Ethernet"},
31+
{"name": "Arduino/Genuino Micro"},
32+
{"name": "Arduino Esplora"},
33+
{"name": "Arduino Mini"},
34+
{"name": "Arduino Ethernet"},
35+
{"name": "Arduino Fio"},
36+
{"name": "Arduino BT"},
37+
{"name": "Arduino LilyPadUSB"},
38+
{"name": "Arduino Lilypad"},
39+
{"name": "Arduino Pro"},
40+
{"name": "Arduino ATMegaNG"},
41+
{"name": "Arduino Robot Control"},
42+
{"name": "Arduino Robot Motor"},
43+
{"name": "Arduino Gemma"},
44+
{"name": "Adafruit Circuit Playground"},
45+
{"name": "Arduino Yún Mini"},
46+
{"name": "Arduino Industrial 101"},
47+
{"name": "Linino One"}
48+
],
49+
"toolsDependencies": [
50+
{
51+
"packager": "arduino",
52+
"name": "avr-gcc",
53+
"version": "4.9.2-atmel3.5.4-arduino2"
54+
},
55+
{
56+
"packager": "arduino",
57+
"name": "avrdude",
58+
"version": "6.3.0-arduino9"
59+
},
60+
{
61+
"packager": "arduino",
62+
"name": "arduinoOTA",
63+
"version": "1.1.1"
64+
}
65+
]
66+
}
67+
],
68+
"tools": [
69+
]
70+
}
71+
]
72+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /