Skip to content

Commit 39da9fa

Browse files
committed
review: move config scripts to config\
Rename `assets` directory to `config` and contained within this, the GNU `config` files and our helper script. Done per feedback to avoid this running at the end of regular execution.
1 parent b7b81a8 commit 39da9fa

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#!/bin/sh -e
22

33
CONFIG_TIMEOUT="${CONFIG_TIMEOUT:-15}"
4-
CONFIG_BASE_URL="https://git.savannah.gnu.org/cgit/config.git/plain"
4+
CONFIG_BASE_URL="${CONFIG_BASE_URL:-https://git.savannah.gnu.org/cgit/config.git/plain}"
55

66
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
7-
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
8-
ASSET_DIR="${ROOT_DIR}/assets"
7+
CONFIG_DIR="${SCRIPT_DIR}"
98

109
fetch_config_file() {
1110
file="$1"
@@ -30,7 +29,7 @@ fetch_config_file() {
3029

3130
echo "Falling back to safe ${file}."
3231
rm -f "${tmp}"
33-
cp "${ASSET_DIR}/${file}" "${file}"
32+
cp "${CONFIG_DIR}/${file}" "${file}"
3433
chmod +x "${file}"
3534
}
3635

‎scripts/001-binutils-PPU.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ ! -d ${BINUTILS} ]; then
99
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget --continue https://ftpmirror.gnu.org/binutils/${BINUTILS}.tar.bz2; fi
1010

1111
## Fetch config.guess and config.sub, falling back to copies if Savannah is unavailable
12-
../scripts/get-config-scripts.sh
12+
../config/get-config-scripts.sh
1313

1414
## Unpack the source code.
1515
tar xfvj ${BINUTILS}.tar.bz2

‎scripts/005-binutils-SPU.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ ! -d ${BINUTILS} ]; then
99
if [ ! -f ${BINUTILS}.tar.bz2 ]; then wget --continue https://ftpmirror.gnu.org/binutils/${BINUTILS}.tar.bz2; fi
1010

1111
## Fetch config.guess and config.sub, falling back to copies if Savannah is unavailable
12-
../scripts/get-config-scripts.sh
12+
../config/get-config-scripts.sh
1313

1414
## Unpack the source code.
1515
tar xfvj ${BINUTILS}.tar.bz2

0 commit comments

Comments
 (0)