summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Thibaut <murphy@gentoo.org>2002-04-18 11:26:06 +0000
committerMaarten Thibaut <murphy@gentoo.org>2002-04-18 11:26:06 +0000
commit97fa32a6b784dcd6ec3984087def3eb873b1e0dc (patch)
treeefcb6c3c5d9ef450b12dfb73989d4b39c28e21bb /scripts
parentMore fixes (diff)
downloadhistorical-97fa32a6b784dcd6ec3984087def3eb873b1e0dc.tar.gz
historical-97fa32a6b784dcd6ec3984087def3eb873b1e0dc.tar.bz2
historical-97fa32a6b784dcd6ec3984087def3eb873b1e0dc.zip
Give build packages based on uname and profile
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build-dyn.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/build-dyn.sh b/scripts/build-dyn.sh
new file mode 100644
index 000000000000..1fa769df7bce
--- /dev/null
+++ b/scripts/build-dyn.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+x86_ver=1.0
+sparc_ver=1.0
+sparc64_ver=1.0
+unamem=`uname -m`
+
+case `uname -m` in
+ sparc64) profile=default-sparc64-${sparc64_ver} ;;
+ sparc) profile=default-sparc-${sparc_ver} ;;
+ i[0-9]86) profile=default-${x86_ver} ;;
+esac
+
+profiledir=/usr/portage/profiles/${profile}
+
+for x in `cat ${profiledir}/packages.build`
+do
+ grep -E "${x}(-[^[:space:]]*)?[[:space:]]*$" ${profiledir}/packages \
+ | grep -v '^#' | sed -e 's:^\*::' | cat
+done