CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
devtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae841da
)
Added code to getBuildOrder to use a name of port as starting point (to avoid the...
author
Jose V Beneyto
<sepen@crux.nu>
Thu, 18 Oct 2012 22:24:10 +0000
(22:24 +0000)
committer
Jose V Beneyto
<sepen@crux.nu>
Thu, 18 Oct 2012 22:24:10 +0000
(22:24 +0000)
getBuildOrder.sh
patch
|
blob
|
blame
|
history
diff --git
a/getBuildOrder.sh
b/getBuildOrder.sh
index 89ca093496ae1e0569f8e99b29a228ea854700ad..8488dcad9c42980fb7d9540ae7018392e80a2b53 100755
(executable)
--- a/
getBuildOrder.sh
+++ b/
getBuildOrder.sh
@@
-31,10
+31,20
@@
getRecursiveDeps() {
fi
}
fi
}
-# global var to store all final deps order
-BUILD_ORDER="libgmp libmpfr libmpc binutils glibc zlib gcc"
+ALT_START=0
-for i in $(find . -type f -name 'Pkgfile' -exec dirname {} \;); do
+# check for passed arguments
+if [ $# -ne 0 ]; then
+ # use package as starting point
+ ALT_START=1
+ START_PKG=$1
+ BUILD_ORDER=""
+else
+ # global var to store all final deps order
+ BUILD_ORDER="libgmp libmpfr libmpc binutils glibc zlib gcc"
+fi
+
+for i in $(find . -type f -name 'Pkgfile' -exec dirname {} \; | sort); do
PKG="$(basename $i)"
case $PKG in
# toolchain ports must be in order
PKG="$(basename $i)"
case $PKG in
# toolchain ports must be in order
@@
-43,7
+53,11
@@
for i in $(find . -type f -name 'Pkgfile' -exec dirname {} \;); do
getRecursiveDeps "$PKG"
done
getRecursiveDeps "$PKG"
done
-echo $BUILD_ORDER | tr ' ' '\n'
+if [ $ALT_START -eq 0 ]; then
+ echo $BUILD_ORDER | tr ' ' '\n'
+else
+ echo $BUILD_ORDER | sed "s|.* $START_PKG|$START_PKG|" | tr ' ' '\n'
+fi
echo
# End fo file
echo
# End fo file