From 25f164c32fad4917ad3e4e934dafac74a4e1e7c6 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sat, 11 Aug 2007 10:55:38 +0000 Subject: When adding a new experimental/obsolete version, mark it as so in the prompt. diff --git a/tools/addToolVersion.sh b/tools/addToolVersion.sh index 08b3bb9..8351d67 100755 --- a/tools/addToolVersion.sh +++ b/tools/addToolVersion.sh @@ -43,6 +43,7 @@ FINAL= VERSION= EXP= OBS= +prompt_suffix= i=1 while [ $i -le $# ]; do @@ -60,8 +61,8 @@ while [ $i -le $# ]; do --ltrace) cat=LTRACE; tool=ltrace; tool_prefix=debug/ tool_suffix=;; --libelf) cat=LIBELF; tool=libelf; tool_prefix=tools/ tool_suffix=;; # Tools options: - -x|--experimental) EXP=1; OBS=;; - -o|--obsolete) OBS=1; EXP=;; + -x|--experimental) EXP=1; OBS=; prompt_suffix=" (EXPERIMENTAL)";; + -o|--obsolete) OBS=1; EXP=; prompt_suffix=" (OBSOLETE)";; --core) CORE=1; FINAL=;; --final) FINAL=1; CORE=;; --install) tool_suffix=install;; @@ -94,7 +95,7 @@ for ver in ${VERSION}; do TOOL_SUFFIX="`echo \"${tool_suffix}\" |tr [[:lower:]] [[:upper:]]`" L1="config ${cat}_${TOOL_SUFFIX}_V_${v}\n" L2=" bool\n" - L3=" prompt \"${ver}\"\n" + L3=" prompt \"${ver}${prompt_suffix}\"\n" # Extra versions are not necessary visible: case "${tool_suffix},${ver}" in sanitised,*) ;; # Sanitised headers always have an extra version @@ -105,7 +106,7 @@ for ver in ${VERSION}; do else L1="config ${cat}${MIDDLE_V}_V_${v}\n" L2=" bool\n" - L3=" prompt \"${ver}\"\n" + L3=" prompt \"${ver}${prompt_suffix}\"\n" L5=" default \"${ver}\" if ${cat}${MIDDLE_V}_V_${v}" FILE="config/${tool_prefix}${MIDDLE_F}${tool}.in" fi -- cgit v0.10.2-6-g49f6