summaryrefslogtreecommitdiffstats
path: root/PCBSD/pc-sysinstall/backend-query/.svn/text-base/list-components.sh.svn-base
blob: 6833dc730fe3d29fea348096ac20667c38664b20 (plain)
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
#!/bin/sh
# Script which lists the available components for this release
###########################################################################

. ${PROGDIR}/backend/functions.sh

echo "Available Components:"

cd ${COMPDIR}
for i in `ls -d *`
do
  if [ -e "${i}/component.cfg" -a -e "${i}/install.sh" -a -e "${i}/distfiles" ]
  then
    NAME="`grep 'name:' ${i}/component.cfg | cut -d ':' -f 2`"
    DESC="`grep 'description:' ${i}/component.cfg | cut -d ':' -f 2`"
    TYPE="`grep 'type:' ${i}/component.cfg | cut -d ':' -f 2`"
    echo " "
    echo "name: ${i}"
    echo "desc:${DESC}"
    echo "type:${TYPE}"
    if [ -e "${i}/component.png" ]
    then
      echo "icon: ${COMPDIR}/${i}/component.png"
    fi
  fi

done

OpenPOWER on IntegriCloud