3 # Wrapper script for sdx, to facilitate the creation of starkits (including cross-platform builds)
4 # Created for the ArchLinux sdx package, licensed under the same conditions as sdx
5 # Copyright: Simon Bachmann (simonbachmann@freesurf.ch), 2007
9 TCLKIT_DIR
=/usr
/share
/sdx
/tclkits
20 $APPNAME is a script that extends sdx to make it easier to create starkits.
22 For more informations about sdx type: $APPNAME sdxhelp ?command?
23 For more informations about $APPNAME type: $APPNAME help ?command?
30 Specify one of the following commands:
31 sdxhelp Access the sdx help
32 wrap Extended wrap command
33 listkits Display a list of all available tclkits
35 For more information type: $APPNAME help ?command?
45 Usage: sdxhelp ?command?
47 command Sdx command to get more information about
49 With no command specified, a list of all sdx commands
50 with a short description is displayed.
60 Usage: wrap name ?options?
62 -runtime name The runtime tclkit to use, one of the
63 names returned by "listkits"
64 -runtimefile file Specifiy runtime with full path
66 All other options are unchanged. See 'sdx help wrap' for details.
74 Display a list of all available tclkits
78 The name of each tclkit should tell you for wich platform
79 it was built. To add more tclkits, just copy them to
98 while [ "$1" != "" ]; do
102 i
=`search_array KITS $1`
103 if [ "$i" != "-1" ]; then
104 options
="$options -runtime ${PATHS[$i]}"
106 echo -e "Starkit named $1 does not exist\n"
114 options
="$options -runtime $1"
118 options
="$options $1"
129 echo -e "These tclkits are available:\n"
130 for k
in "${KITS[@]}"; do
137 eval arr
="( \${$1[@]} )"
140 for (( i
=0 ; $i < ${#arr[@]} ; i
+=1)); do
141 if [ "${arr[$i]}" = "$2" ]; then
155 for path
in "$TCLKIT_DIR"/*; do
157 if [ -r "$path" -a -x "$path" ]; then
166 #echo "Found kits: ${KITS[@]}"
167 #echo "Found paths: ${PATHS[@]}"
188 if [ "$1" = "" ]; then