Desenvolver e Download de Software Open Source

Browse Subversion Repository

Contents of /branches/ept-devel/vmm/config.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19 - (show annotations) (download) (as text)
Mon Apr 23 13:55:54 2012 UTC (12 years, 1 month ago) by yuichi_xy
File MIME type: text/x-sh
File size: 663 byte(s)
EPT 対応用のブランチを作成
1 #!/bin/sh
2 set --
3 LANG=C
4 while read line; do
5 name="${line%%#*}"
6 value="${name#*=}"
7 name="${name%%=*}"
8 name="${name#CONFIG_}"
9 help="${line#*#}"
10 set -- "$@" "$name" "$help" "$value"
11 done < .config
12 exec 3>&1
13 ret="`whiptail --checklist \"VMM Configuration\" 22 75 16 -- \"$@\" 2>&1 1>&3 3>&-`" || exit 1
14 exec 3>&-
15 set -- $ret
16 mv .config .config.bak || exit 1
17 while read line; do
18 name="${line%%#*}"
19 value="${name#*=}"
20 name="${name%%=*}"
21 name="${name#CONFIG_}"
22 help="${line#*#}"
23 value=0
24 for i; do
25 case "$i" in \""$name"\")
26 value=1
27 esac
28 done
29 echo "CONFIG_$name=$value#$help"
30 done < .config.bak > .config

Properties

Name Value
svn:executable *

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26