Changeset 1087 for trunk/bin


Ignore:
Timestamp:
Jun 12, 2010, 7:33:49 AM (11 years ago)
Author:
Peter Johansson
Message:

deprecating option --copyright fixes #307

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigestParameter.cc

    r1085 r1087  
    5656      anchor_format_(cmd_,"anchor-format",
    5757                     "override anchor image format defined in config file"),
    58       copyright_(cmd_, "copyright", "update copyright statement"),
     58      copyright_(cmd_, "copyright", "DEPRECATED update copyright statement"),
    5959      force_(cmd_, "f,force",
    6060             std::string("if sub-directory named <ROOT> exists in target dire")+
     
    6666      target_(cmd_, "t,target", "output directory [.]")
    6767  {
    68     // set default values
    69     /*
    70     if (!target_.present())
    71       target_.value(".");
    72     */
    7368  }
    7469
     
    113108        target_.value(pwd());
    114109        chdir(save_wd);
     110      }
     111      if (copyright()) {
     112        std::cerr << "svndigest: option `--copyright' is deprecated "
     113                  << "and will disappear in the future.\n"
     114                  << "Use svncopyright instaed.\n";
    115115      }
    116116    }
     
    173173  void svndigestParameter::set_default2(void)
    174174  {
    175 
     175    if (!target_.present())
     176      target_.value(".");
    176177  }
    177178
Note: See TracChangeset for help on using the changeset viewer.