[wpdev-commits] wolfpack/setup.d config,1.2,1.3
Brought to you by:
rip,
thiagocorrea
|
From: <as...@us...> - 2003-10-24 00:15:12
|
Update of /cvsroot/wpdev/wolfpack/setup.d
In directory sc8-pr-cvs1:/tmp/cvs-serv14985/setup.d
Modified Files:
config
Log Message:
added input menu to allow the user to change paths
Index: config
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/setup.d/config,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** config 15 Oct 2003 02:47:35 -0000 1.2
--- config 23 Oct 2003 21:05:19 -0000 1.3
***************
*** 19,30 ****
for CUR_INC in $INC_PRE;
do
! eval "echo -n \"\\\"\$(echo \"\$${CUR_INC}_INCDIRS\"|sed -e 's/^(\([^)]\+\)).*$/\1/') include dir\\\" \\\"\$(echo \"\$${CUR_INC}_INCDIRS\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$/\1/')\\\" \";" >> "$DIALOG_CACHE";
done;
for CUR_LIB in $LIB_PRE;
do
! eval "echo -n \"\\\"\$(echo \"\$${CUR_LIB}_LIBDIRS\"|sed -e 's/^(\([^)]\+\)).*$/\1/') library dir\\\" \\\"\$(echo \"\$${CUR_LIB}_LIBDIRS\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$/\1/')\\\" \";" >> "$DIALOG_CACHE";
! eval "echo -n \"\\\"\$(echo \"\$${CUR_LIB}_LIBFILES\"|sed -e 's/^(\([^)]\+\)).*$/\1/') library name\\\" \\\"\$(echo \"\$${CUR_LIB}_LIBFILES\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$/\1/')\\\" \";" >> "$DIALOG_CACHE";
done;
! eval "$DIALOG --menu \"Wolfpack Emu Setup\" 0 0 0 $(< $DIALOG_CACHE)";
--- 19,53 ----
for CUR_INC in $INC_PRE;
do
! eval "echo -n \"\\\"\$(echo \"\$${CUR_INC}_INCDIRS\"|sed -e 's/^(\([^)]\+\)).*$/\1/') include dir\\\" \\\"\$(echo \"\$${CUR_INC}_INCDIRS\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$\|^([^)]\+) \(.*\)$/\1/')\\\" \";" >> "$DIALOG_CACHE";
done;
for CUR_LIB in $LIB_PRE;
do
! eval "echo -n \"\\\"\$(echo \"\$${CUR_LIB}_LIBDIRS\"|sed -e 's/^(\([^)]\+\)).*$/\1/') library dir\\\" \\\"\$(echo \"\$${CUR_LIB}_LIBDIRS\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$\|^([^)]\+) \(.*\)$/\1/')\\\" \";" >> "$DIALOG_CACHE";
! eval "echo -n \"\\\"\$(echo \"\$${CUR_LIB}_LIBFILES\"|sed -e 's/^(\([^)]\+\)).*$/\1/') library name\\\" \\\"\$(echo \"\$${CUR_LIB}_LIBFILES\"|sed -e 's/^([^)]\+) \+\([^ ]\+\).*$\|^([^)]\+) \(.*\)$/\1/')\\\" \";" >> "$DIALOG_CACHE";
done;
! get_varent()
! {
! AMOUNT=2;
! while ! cut -d'"' -f$AMOUNT "$DIALOG_CACHE"|grep "^${1}$" > /dev/null 2>&1;
! do
! AMOUNT=$(expr $AMOUNT + 4);
! done;
! cut -d'"' -f$(expr $AMOUNT + 2) "$DIALOG_CACHE";
! }
!
! # TODO: version fields should be read-only!
!
! eval "$DIALOG --menu \"Wolfpack Emu Setup\" 0 0 0 $(< $DIALOG_CACHE) \"\" \"\" \"Exit\" \"Exit configuration and proceed.\"" 2>> "$SETUP_CACHE";
!
! case "$?" in
! 0) ;;
! *) exit;;
! esac;
!
! # TODO: get the line spacer and loop
!
! tail -1 "$SETUP_CACHE"|grep "^Exit$" > /dev/null 2>&1 && exit;
!
! $DIALOG --inputbox "$(tail -1 "$SETUP_CACHE")?" 0 0 "$(get_varent "$(tail -1 "$SETUP_CACHE")")";
|