Release of 0.10
git-svn-id: https://svn.code.sf.net/p/porg/code/trunk@176 8854956c-c02d-4db9-8198-7e99b8e08f37
This commit is contained in:
parent
40b504af6a
commit
c1c7e19bf6
1
AUTHORS
1
AUTHORS
|
@ -53,4 +53,5 @@ Piotr Karbowski
|
|||
Kardakov Slava
|
||||
R.J.V. Bertin
|
||||
Tomoaki Nishiyama
|
||||
Alain Bureau
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
Version 0.10 (17 May 2016)
|
||||
--------------------------
|
||||
|
||||
+ Fixed bug: Make variable names in porgrc file really case
|
||||
insensitive. Now, "LOGDIR", "logdir" and "LogDiR" are all
|
||||
valid and equivalent (thanks Alain Bureau).
|
||||
|
||||
|
||||
Version 0.9 (16 April 2016)
|
||||
---------------------------
|
||||
|
||||
|
|
4
README
4
README
|
@ -1,3 +1,4 @@
|
|||
|
||||
[p*org]
|
||||
|
||||
|
||||
|
@ -101,7 +102,7 @@ The porg distribution provides the following auxiliary scripts:
|
|||
|
||||
* License *
|
||||
|
||||
Copyright © 2015 David Ricart.
|
||||
Copyright © 2016 David Ricart.
|
||||
Porg is protected by the GNU General Public License.
|
||||
Look at the COPYING file for more details.
|
||||
|
||||
|
@ -117,3 +118,4 @@ porg. A complete list of them can be found in the AUTHORS file.
|
|||
|
||||
===============================================================================
|
||||
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
# Process this file with autoconf to produce a configure script.
|
||||
#
|
||||
|
||||
AC_INIT([porg],[svn],[http://porg.sourceforge.net])
|
||||
AC_INIT([porg],[0.10],[http://porg.sourceforge.net])
|
||||
|
||||
#RELEASEDATE="16 April 2016"
|
||||
RELEASEDATE="`date +'%d %B %Y'`"
|
||||
RELEASEDATE="17 May 2016"
|
||||
#RELEASEDATE="`date +'%d %B %Y'`"
|
||||
|
||||
AC_CONFIG_SRCDIR([porg/main.cc])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include "config.h"
|
||||
#include "baseopt.h"
|
||||
#include "rexp.h"
|
||||
#include "common.h"
|
||||
#include <wordexp.h>
|
||||
#include <fstream>
|
||||
|
||||
|
@ -36,7 +37,7 @@ BaseOpt::BaseOpt()
|
|||
|
||||
if (re.exec(buf)) {
|
||||
|
||||
opt = re.match(1);
|
||||
opt = Porg::to_lower(re.match(1));
|
||||
val = re.match(2);
|
||||
|
||||
if (opt == "logdir")
|
||||
|
|
|
@ -124,6 +124,20 @@ string Porg::strip_trailing(string const& str, char c)
|
|||
}
|
||||
|
||||
|
||||
//
|
||||
// convert a string to lowercase
|
||||
//
|
||||
string Porg::to_lower(string const& str)
|
||||
{
|
||||
string low(str);
|
||||
|
||||
for (uint i(0); i < low.size(); ++i)
|
||||
low[i] = tolower(low[i]);
|
||||
|
||||
return low;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Generic exception with errno support
|
||||
//
|
||||
|
|
|
@ -72,6 +72,7 @@ namespace Porg
|
|||
extern std::string fmt_size(float size);
|
||||
extern std::string fmt_date(time_t date, bool print_hour);
|
||||
extern std::string strip_trailing(std::string const&, char);
|
||||
extern std::string to_lower(std::string const&);
|
||||
extern bool in_paths(std::string const&, std::string const&);
|
||||
|
||||
} // namespace Porg
|
||||
|
|
22
porg/opt.cc
22
porg/opt.cc
|
@ -9,6 +9,7 @@
|
|||
#include "config.h"
|
||||
#include "opt.h"
|
||||
#include "out.h"
|
||||
#include "porg/common.h"
|
||||
#include <getopt.h>
|
||||
|
||||
using std::string;
|
||||
|
@ -22,7 +23,6 @@ static void help();
|
|||
static void version();
|
||||
static string get_dir_name();
|
||||
static void die_help(string const& msg = "");
|
||||
static string to_lower(string const& str);
|
||||
|
||||
|
||||
bool Opt::s_all_pkgs = false;
|
||||
|
@ -196,8 +196,8 @@ Opt::Opt(int argc, char* argv[])
|
|||
case OPT_SKIP: s_remove_skip = optarg; break;
|
||||
case OPT_BATCH: s_remove_batch = true; break;
|
||||
case OPT_UNLOG: s_remove_unlog = true; break;
|
||||
case OPT_PACKAGE: s_log_pkg_name = to_lower(optarg); break;
|
||||
case OPT_DIRNAME: s_log_pkg_name = to_lower(get_dir_name()); break;
|
||||
case OPT_PACKAGE: s_log_pkg_name = Porg::to_lower(optarg); break;
|
||||
case OPT_DIRNAME: s_log_pkg_name = Porg::to_lower(get_dir_name()); break;
|
||||
case OPT_INCLUDE: s_include = optarg; break;
|
||||
case OPT_EXCLUDE: s_exclude = optarg; break;
|
||||
case OPT_APPEND: s_log_append = true; break;
|
||||
|
@ -340,7 +340,7 @@ Opt::Opt(int argc, char* argv[])
|
|||
|
||||
// convert package names to lower case
|
||||
for (uint i(0); i < s_args.size(); ++i)
|
||||
s_args[i] = to_lower(s_args[i]);
|
||||
s_args[i] = Porg::to_lower(s_args[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -484,17 +484,3 @@ static void die_help(string const& msg /* = "" */)
|
|||
throw Error(str + "Try 'porg --help' for more information");
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// convert a string to lowercase
|
||||
//
|
||||
static string to_lower(string const& str)
|
||||
{
|
||||
string low(str);
|
||||
|
||||
for (uint i(0); i < low.size(); ++i)
|
||||
low[i] = tolower(low[i]);
|
||||
|
||||
return low;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue