Changeset 502


Ignore:
Timestamp:
11/12/2009 21:27:51 (2 years ago)
Author:
ccowart
Message:

Merging enhancements to confman recipe edit.

Resolves #105

Location:
branches/confman-1.9
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 501
  • branches/confman-1.9/confman.8.in

    r482 r502  
    220220.It Cm recipe create Oo Fl R Ar filename Oc Oo Ar log_flags Oc Ar recipe 
    221221.It Cm recipe print Oo Ar recipe Oc 
    222 .It Cm recipe Bro Cm edit | remove Brc Oo Ar log_flags Oc Ar recipe  
     222.It Cm recipe edit Oo Ar log_flags Oc Oo Ar recipe Oc 
     223.It Cm recipe Bro Cm remove Brc Oo Ar log_flags Oc Ar recipe  
    223224.It Cm recipe set Ar recipe 
    224225.Bl -tag -width indent 
  • branches/confman-1.9/confman.in

    r500 r502  
    966966    shift $(($OPTIND - 1)) 
    967967 
    968     if [ -z "$1" ] ; then print_usage 1 ; fi 
    969  
    970     wcopy_lock=$(conf_lock_wcopy) 
    971     recipe="$1" 
     968    if [ -z "$1" ] ; then  
     969        conf_require_recipe 
     970        recipe=$(conf_get_recipe_name) 
     971    else 
     972        recipe="$1" 
     973    fi 
     974 
     975    wcopy_lock=$(conf_lock_wcopy) 
    972976    recipe_file=$(conf_recipe_dir)/${recipe} 
     977 
     978    if ! [ -f "$recipe_file" ] ; then 
     979        echo "Recipe $recipe does not exist." >&4 
     980        exit 1 
     981    fi 
     982 
    973983    new_recipe_file=$(conf_tmp_file) 
    974984 
  • branches/confman-1.9/confmandoc.sh

    r482 r502  
    501501Usage: 
    502502  $MYNAME recipe [ get | list ] 
    503   $MYNAME recipe print [ recipe_name ] 
     503  $MYNAME recipe [ print | edit ] [ recipe_name ] 
    504504  $MYNAME recipe set recipe_name 
    505   $MYNAME recipe [ create | edit | remove ] [ -F file | -m msg ] recipe_name 
     505  $MYNAME recipe [ create | remove ] [ -F file | -m msg ] recipe_name 
    506506 
    507507The recipe command provides an interface to manage confman recipes. 
Note: See TracChangeset for help on using the changeset viewer.