Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (22 sloc) 1.212 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#!/bin/sh

# Narcissus - Online image builder for the angstrom distribution
# Koen Kooi (c) 2010- all rights reserved

# This script extracts metadata from the cache dir to use in e.g. manifests

if [ -e ${PWD}/conf/host-config ] ; then
. ${PWD}/conf/host-config
fi

echo "<div id='machinelist'>" > machine-list.html
echo " Select the machine you want to build your rootfs image for:<br/><br/>" >> machine-list.html
echo " <select name='machine' onChange='showValues();'>" >> machine-list.html

for machine in $(find conf/ -name "arch.conf" | awk -F/ '{print $2}' | sort | uniq) ; do
echo " <option value=\"$machine\">$machine</option>" >> machine-list.html

echo "<div id='configlist'>" > conf/$machine/config-list.html
echo " <select name=\"configs\" onChange='showValues();'>" >> conf/$machine/config-list.html
for config in $('ls' conf/$machine/configs/ | sort -d ) ; do
echo " <option value=\"$(basename $config)\">$(basename $config)</option>" >> conf/$machine/config-list.html
done
echo " </select>" >> conf/$machine/config-list.html
echo "</div>" >> conf/$machine/config-list.html

done

echo " </select><br/>" >> machine-list.html
echo "</div>" >> machine-list.html
Something went wrong with that request. Please try again.