summaryrefslogtreecommitdiff
path: root/etc/tasks/004-packages.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-01-29 14:38:49 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-01-29 14:38:49 -0500
commit73a53c48901e120a06d221c8cb4f02076e3b9888 (patch)
tree8fb5e157dc19b8b8d22af12b5a51288802d5b660 /etc/tasks/004-packages.sh
parent92f2ea6ed46ffae5302a47452d816b5dc5784eb7 (diff)
downloaddocker-python-73a53c48901e120a06d221c8cb4f02076e3b9888.tar.gz
Introduce real toolchain
Diffstat (limited to 'etc/tasks/004-packages.sh')
-rwxr-xr-xetc/tasks/004-packages.sh43
1 files changed, 0 insertions, 43 deletions
diff --git a/etc/tasks/004-packages.sh b/etc/tasks/004-packages.sh
deleted file mode 100755
index f7d0cad..0000000
--- a/etc/tasks/004-packages.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-set -e
-set -x
-
-prefix="${TOOLCHAIN}"
-sysconfdir="${TOOLCHAIN_BUILD}/etc"
-reqdir=${sysconfdir}/pkgs
-blddir=builds
-
-export PATH="${prefix}/bin:${PATH}"
-export CFLAGS="-I${prefix}/include"
-export LDFLAGS="-L${prefix}/lib -Wl,-rpath=${prefix}/lib"
-export PREFIX="${prefix}"
-
-function pre()
-{
- if [[ ! -d ${reqdir} ]]; then
- # Nothing there, but maybe that's on purpose.
- exit 0
- fi
- mkdir -p "${blddir}"
- pushd ${blddir} &>/dev/null
-}
-
-function build()
-{
- pre
- # Iterate over binary package build scripts
- for req in ${reqdir}/*
- do
- chmod +x "${req}"
- "${req}"
- done
- post
-}
-
-function post()
-{
- popd &>/dev/null
- [[ -d ${blddir} ]] && rm -rf "${blddir}"
-}
-
-build