summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-08 01:35:11 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-08 01:35:11 (EST)
commitc65074611db7a7f1a404e9d98ff289a073af537e (patch)
tree57b50eef62b8a7c1e2a545439422018f32104866
parent072e52337e5dca673ac57a868345545c8834bb4e (diff)
Write configured targets to a file.
-rw-r--r--.gitignore1
-rwxr-xr-xconfig2
2 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index dbc6d31..80ecdb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,4 +7,5 @@ Session.vim
# Generated files
binutils-*-*-*.pkg/
libbfd-dev-*-*-*.pkg/
+targets
tmp/
diff --git a/config b/config
index bc12547..9feb6d0 100755
--- a/config
+++ b/config
@@ -14,8 +14,10 @@ main()
if [ -z "${PKG_TARGETS}" ]; then
PKG_TARGETS="$(cat targets.in)"
fi
+ >targets
for arch in ${PKG_TARGETS}; do
PKG_TARGET_ARCH="${arch}" configure_build
+ printf '%s\n' "${arch}" >>targets
done
;;
esac