File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ script: |
112
112
113
113
# Create the source tarball
114
114
mkdir -p "$(dirname "$GIT_ARCHIVE")"
115
- git archive --output="$GIT_ARCHIVE" HEAD
115
+ git archive --prefix="${DISTNAME}/" -- output="$GIT_ARCHIVE" HEAD
116
116
117
117
ORIGPATH="$PATH"
118
118
# Extract the git archive into a dir for each host and build
@@ -129,7 +129,7 @@ script: |
129
129
cd distsrc-${i}
130
130
INSTALLPATH="${PWD}/installed/${DISTNAME}"
131
131
mkdir -p ${INSTALLPATH}
132
- tar -xf $ GIT_ARCHIVE
132
+ tar --strip-components=1 - xf "${ GIT_ARCHIVE}"
133
133
134
134
./autogen.sh
135
135
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}"
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ script: |
111
111
112
112
# Create the source tarball
113
113
mkdir -p "$(dirname "$GIT_ARCHIVE")"
114
- git archive --output="$GIT_ARCHIVE" HEAD
114
+ git archive --prefix="${DISTNAME}/" -- output="$GIT_ARCHIVE" HEAD
115
115
116
116
ORIGPATH="$PATH"
117
117
# Extract the git archive into a dir for each host and build
@@ -121,7 +121,7 @@ script: |
121
121
cd distsrc-${i}
122
122
INSTALLPATH="${PWD}/installed/${DISTNAME}"
123
123
mkdir -p ${INSTALLPATH}
124
- tar -xf $ GIT_ARCHIVE
124
+ tar --strip-components=1 - xf "${ GIT_ARCHIVE}"
125
125
126
126
./autogen.sh
127
127
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ script: |
116
116
117
117
# Create the source tarball
118
118
mkdir -p "$(dirname "$GIT_ARCHIVE")"
119
- git archive --output="$GIT_ARCHIVE" HEAD
119
+ git archive --prefix="${DISTNAME}/" -- output="$GIT_ARCHIVE" HEAD
120
120
121
121
ORIGPATH="$PATH"
122
122
# Extract the git archive into a dir for each host and build
@@ -126,7 +126,7 @@ script: |
126
126
cd distsrc-${i}
127
127
INSTALLPATH="${PWD}/installed/${DISTNAME}"
128
128
mkdir -p ${INSTALLPATH}
129
- tar -xf $ GIT_ARCHIVE
129
+ tar --strip-components=1 - xf "${ GIT_ARCHIVE}"
130
130
131
131
./autogen.sh
132
132
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}"
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ GIT_ARCHIVE="${OUTDIR}/src/${DISTNAME}.tar.gz"
158
158
# Create the source tarball if not already there
159
159
if [ ! -e " $GIT_ARCHIVE " ]; then
160
160
mkdir -p " $( dirname " $GIT_ARCHIVE " ) "
161
- git archive --output=" $GIT_ARCHIVE " HEAD
161
+ git archive --prefix= " ${DISTNAME} / " -- output=" $GIT_ARCHIVE " HEAD
162
162
fi
163
163
164
164
# ##########################
@@ -193,7 +193,7 @@ export PATH="${BASEPREFIX}/${HOST}/native/bin:${PATH}"
193
193
cd " $DISTSRC "
194
194
195
195
# Extract the source tarball
196
- tar -xf " ${GIT_ARCHIVE} "
196
+ tar --strip-components=1 - xf " ${GIT_ARCHIVE} "
197
197
198
198
./autogen.sh
199
199
You can’t perform that action at this time.
0 commit comments