Skip to content

Commit 7186416

Browse files
committed
fix DeqingSun#26: generate the core archive from the git repository, don't include local files
1 parent 3cb9b09 commit 7186416

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

board-manager/Makefile.core

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
NAME=sduino
2-
VERSION?=0.3.0-pre1
2+
VERSION?=0.3.2
33
SDCCVERSION?=10088
4-
TOOLSVERSION?=2017.10.21
4+
TOOLSVERSION?=2017.11.06
55

66
# where to put the generated files
77
COREDIR?=release
88
PARTSDIR?=parts
99

10-
# Ignore all files matching one of these shell patterns when building the
11-
# core archive.
12-
IGNORE=*~ *bak x build-* *.orig *.rej
13-
10+
# subtree of the repository to be included in the archive
11+
SUBTREE=sduino/hardware/sduino/stm8
1412

1513
#
1614
### No user serviceable part below here. ################################
@@ -34,5 +32,5 @@ $(PLATFORM_ENTRY): $(COREFILE)
3432

3533
$(COREFILE):
3634
echo "Generating the core archive file."
37-
# dereference symlinks as they are not supported on Windows (#24)
38-
tar cjf $@ --hard-dereference --dereference $(EXCLUDES) -C ../sduino/hardware/sduino/stm8 .
35+
(cd ..; git archive -v --format=tar HEAD:$(SUBTREE))|\
36+
bzip2 > $(COREFILE)

0 commit comments

Comments
 (0)