[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-cvs
Subject:    [CVS] OpenPKG: openpkg-registry/ register.sh
From:       "Ralf S. Engelschall" <rse () openpkg ! org>
Date:       2005-11-29 19:28:17
Message-ID: 20051129192817.4143E1B5065 () master ! openpkg ! org
[Download RAW message or body]

  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  rse@openpkg.org
  Module: openpkg-registry                 Date:   29-Nov-2005 20:28:17
  Branch: HEAD                             Handle: 2005112919281600

  Modified files:
    openpkg-registry        register.sh

  Log:
    output cosmetics

  Summary:
    Revision    Changes     Path
    1.21        +15 -15     openpkg-registry/register.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-registry/register.sh
  ============================================================================
  $ cvs diff -u -r1.20 -r1.21 register.sh
  --- openpkg-registry/register.sh	29 Nov 2005 19:19:17 -0000	1.20
  +++ openpkg-registry/register.sh	29 Nov 2005 19:28:16 -0000	1.21
  @@ -333,7 +333,7 @@
       if [ ".$REGISTRY_MODE" = .post ]; then
           $curl \
               --silent \
  -            --user-agent $useragent \
  +            --user-agent "$useragent" \
               --form 'page=dropxml' \
               --form 'data=<-' \
               --form 'submit=DROPXML' \
  @@ -406,29 +406,28 @@
           return
       fi
   
  -    echo "*******************************************"
  -    echo "** Interactive step by step registration **"
  -    echo "*******************************************"
  -    echo "You may abort at any time pressing CTRL-C"
  +    echo "OpenPKG Registry Client ($useragent)"
       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 "Interactive step-by-step registration procedure."
  +    echo "You can abort at any time by just pressing CTRL-C."
       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 "Registration is a three step process:"
  +    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 local URL rewriting"  echo ""
  +    echo "A (*) marks an optional field where the empty string \"\" is allowed."
  +    echo "Just press RETURN to continue and/or keep a default setting."
   
  +    echo ""
       read -p "==== Preparation ==== [press RETURN to continue]"
       echo "Attempting to write to the configuration file \"$REGISTRY_CONF\""
       echo "#`TZ= date '+%Y-%m-%d %H:%M:%S'`" | tee -a "$REGISTRY_CONF" 2>/dev/null \
                \
           || error "Configuration file not writable. Get more permissions and try \
again"  
       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"  +    read -p "[REGISTRY_DESC=\"$REGISTRY_DESC\"] \
description (*) ";   [ ".$REPLY" != . ] && REGISTRY_DESC="$REPLY"  +    read -p \
"[REGISTRY_PLAT=\"$REGISTRY_PLAT\"] platform (*) ";      [ ".$REPLY" != . ] && \
                REGISTRY_DESC="$REPLY"
       read -p "[REGISTRY_OREL=\"$REGISTRY_OREL\"] release (*) ";       [ ".$REPLY" \
                != . ] && REGISTRY_DESC="$REPLY"
       read -p "[REGISTRY_UUID=\"$REGISTRY_UUID\"] uuid file to read "; [ ".$REPLY" \
                != . ] && REGISTRY_UUID="$REPLY"
       read -p "[REGISTRY_PREP=\"$REGISTRY_PREP\"] prep dump file ";    [ ".$REPLY" \
!= . ] && REGISTRY_PREP="$REPLY"  @@ -459,6 +458,7 @@
   
       preparation
   
  +    echo ""
       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"  @@ -477,8 +477,8 @@
   
       transaction <$REGISTRY_PREP
   
  +    echo ""
       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"  
       [ ".$REGISTRY_UTIL" = . ] && error "missing information REGISTRY_UTIL"
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic