[evoke] r1230 committed - * fix some problems in the loop.

1 view
Skip to first unread message

codesite...@google.com

unread,
Aug 28, 2009, 11:19:22 AM8/28/09
to evoke-...@googlegroups.com
Revision: 1230
Author: heliocentric
Date: Fri Aug 28 08:18:37 2009
Log: * fix some problems in the loop.

http://code.google.com/p/evoke/source/detail?r=1230

Modified:
/trunk/builder/dynamic.sh

=======================================
--- /trunk/builder/dynamic.sh Thu Aug 27 08:27:43 2009
+++ /trunk/builder/dynamic.sh Fri Aug 28 08:18:37 2009
@@ -38,12 +38,12 @@

# Patch in the binary path into the kernel directly, so that loader.conf
doesn't need to.

-VERSIONLIST="$(echo "${TARGETLIST}" | cut -d -f : 4 | sort -r | uniq)"
+VERSIONLIST="$(echo "${TARGETLIST}" | cut -d : -f 4 | sort -r | uniq)"

INIT_PATH="${N_BIN}/nexusd:${N_BIN}/init:/system/FreeBSD-${RELEASE}/i386/bin/nexusd:/system/FreeBSD-${RELEASE}/i386/bin/init"

for version in ${VERSIONLIST}
do
- if [ "${version}" -lt "${RELEASE}" ] ; then
+ if [ "$(echo "${version}" | cut -d . -f 1)" -lt "$(echo "${RELEASE}" |
cut -d . -f 1)" ] ; then
if [ "${TARGET_ARCH}" = "amd64" ] ; then
INIT_PATH=${INIT_PATH}:/system/FreeBSD-${version}/amd64/bin/nexusd
INIT_PATH=${INIT_PATH}:/system/FreeBSD-${version}/amd64/bin/init

Reply all
Reply to author
Forward
0 new messages