OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-registry Date: 29-Nov-2005 17:37:55
Branch: HEAD Handle: 2005112916375500
Modified files:
openpkg-registry register.sh
Log:
slightly improve interactive dialog
Summary:
Revision Changes Path
1.14 +21 -12 openpkg-registry/register.sh
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-registry/register.sh
============================================================================
$ cvs diff -u -r1.13 -r1.14 register.sh
--- openpkg-registry/register.sh 29 Nov 2005 16:35:18 -0000 1.13
+++ openpkg-registry/register.sh 29 Nov 2005 16:37:55 -0000 1.14
@@ -408,16 +408,26 @@
return
fi
- echo "Interactive step by step registration. You may abort at any time
pressing CTRL-C sequence."
- echo "(*) marks an optional field where the empty string \"\" is allowed"
+ echo "*******************************************"
+ echo "** Interactive step by step registration **"
+ echo "*******************************************"
+ echo "You may abort at any time pressing CTRL-C"
+ echo ""
+ echo "Registration is a three step process:"
+ echo "-------------------------------------"
+ echo "1.) Preparation = create a configuration file and locally prepare
a registration request"
+ echo "2.) Transaction = run a transaction to submit the request to the
registry"
+ echo "3.) Utilization = memorize the response to activate URL rewriting"
+ echo ""
+ echo "- a (*) marks an optional field where the empty string \"\" is
allowed"
+ echo "- just press return to continue and/or keep the default setting"
+ echo ""
+
+ read -p "==== Preparation ==== [press RETURN to continue]"
+ echo "Attempting to write to the configuration file \"$conf\""
+ echo "#`TZ= date '+%Y-%m-%d %H:%M:%S'`" | tee -a "$conf" 2>/dev/null \
+ || error "Configuration file not writable. Get more permissions and try
again"
- touch "$conf" || error "Configuration file \"$conf\" not writable. Get
more permissions and try again"
-
- read -p "Appending activity timestamp to configuration file \"$conf\"
[press RETURN to continue]"
- echo "#`TZ= date '+%Y-%m-%d %H:%M:%S'`" | tee -a "$conf"
-
- echo "==== Preparation ===="
- echo "Press return to keep default"
read -p "[REGISTRY_USER=\"$REGISTRY_USER\"] username "; [
".$REPLY" != . ] && REGISTRY_USER="$REPLY"
read -p "[REGISTRY_DESC=\"$REGISTRY_DESC\"] description (*)"; [
".$REPLY" != . ] && REGISTRY_DESC="$REPLY"
read -p "[REGISTRY_PLAT=\"$REGISTRY_PLAT\"] platform (*)"; [
".$REPLY" != . ] && REGISTRY_DESC="$REPLY"
@@ -451,8 +461,7 @@
preparation
- echo "==== Transaction ===="
- echo "Press return to keep default"
+ read -p "==== Transaction ==== [press RETURN to continue]"
read -p "[REGISTRY_MODE=\"$REGISTRY_MODE\"] mode (post or fake) "; [
".$REPLY" != . ] && REGISTRY_MODE="$REPLY"
read -p "[REGISTRY_ARGS=\"$REGISTRY_ARGS\"] args "; [
".$REPLY" != . ] && REGISTRY_ARGS="$REPLY"
read -p "[REGISTRY_TRAN=\"$REGISTRY_TRAN\"] tran dump file "; [
".$REPLY" != . ] && REGISTRY_TRAN="$REPLY"
@@ -470,7 +479,7 @@
transaction <$REGISTRY_PREP
- echo "==== Utilization ===="
+ read -p "==== Utilization ==== [press RETURN to continue]"
echo "Press return to keep default"
read -p "[REGISTRY_UTIL=\"$REGISTRY_UTIL\"] util dump file "; [
".$REPLY" != . ] && REGISTRY_UTIL="$REPLY"
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]