Changeset 2217 for trunk


Ignore:
Timestamp:
Mar 14, 2010, 9:57:53 PM (13 years ago)
Author:
Peter
Message:

merged release 0.6.1

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/NEWS

    r2202 r2217  
    1010
    1111yat 0.6.x series from http://dev.thep.lu.se/yat/svn/branches/0.6-stable
     12
     13Version 0.6.1 (released 14 March 2010)
     14
     15  - fixed bug with `yat-config --ldflags` (#615)
     16  - fixed bug in FileUtil::permission when file does not exist (#617)
     17
     18  A complete list of closed tickets can be found here [[br]]
     19  http://dev.thep.lu.se/yat/query?status=closed&milestone=yat+0.6.1
    1220
    1321Version 0.6 (released 21 February 2010)
  • trunk/build_support/yat-config.in

    r2119 r2217  
    22
    33# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    4 # Copyright (C) 2009 Peter Johansson
     4# Copyright (C) 2009, 2010 Peter Johansson
    55#
    66# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    150150    if test "x$libdir" = "x/usr/lib"; then
    151151      : # ignore standard '/usr/lib'
    152     elif (test "$CXX"="g++" &&
    153           test "x$libdir"="x/usr/local/lib"); then
     152    elif (test "$CXX" = "g++" &&
     153          test "x$libdir" = "x/usr/local/lib"); then
    154154      : # ignore '/usr/local/lib' if we use g++
    155155    else
  • trunk/m4/version.m4

    r2202 r2217  
    2828m4_define([MINOR_VERSION], [7])
    2929# PATCH - Modify for every released patch
    30 m4_define([PATCH_VERSION], [0])
     30m4_define([PATCH_VERSION], [1])
    3131
    3232# DEV_BUILD - When rolling a tarball we set this to `false'. In
     
    6262# yat-0.5.6  2:5:0
    6363# yat-0.6.0  3:0:0
     64# yat-0.6.1  3:1:0
    6465#
    6566# *Accidently, the libtool number was not updated for yat 0.5
  • trunk/m4/yat.m4

    r2202 r2217  
    8686#
    8787#   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    88 #   Copyright (C) 2009 Peter Johansson
     88#   Copyright (C) 2009, 2010 Peter Johansson
    8989#
    9090#   This file is part of the yat library, http://dev.thep.lu.se/yat
     
    105105
    106106#
    107 # serial 3  # version number of yat.m4
     107# serial 4  # version number of yat.m4
    108108#
    109109# see http://www.gnu.org/software/automake/manual/automake.html#Serials
     
    111111AC_DEFUN([YAT_CHECK_YAT],
    112112[
    113 AC_PREREQ([2.58]) dnl we use AC_FIND_YAT
     113AC_PREREQ([2.60]) dnl we use AC_FIND_YAT
    114114ac_yat_check_yat_res="yes"
    115115AC_REQUIRE([YAT_FIND_YAT])  dnl
     
    125125AC_DEFUN([YAT_FIND_YAT],
    126126[
    127   AC_PREREQ([2.58]) dnl we use AS_HELP_STRING
     127  AC_PREREQ([2.60]) dnl we use multi-arg AS_IF
    128128  AC_ARG_WITH([yat],
    129129     [AS_HELP_STRING([--with-yat=DIR],
     
    171171AC_DEFUN([YAT_CHECK_VERSION],
    172172[
    173   AC_PREREQ([2.58]) dnl we use YAT_FIND_YAT
     173  AC_PREREQ([2.60]) dnl we use YAT_FIND_YAT
    174174  AC_REQUIRE([YAT_FIND_YAT])  dnl
    175175  if test "$yat_config" != "no"; then
     
    197197AC_DEFUN([YAT_CHECK_HEADER],
    198198[
    199   AC_PREREQ([2.58]) dnl we use YAT_FIND_YAT
     199  AC_PREREQ([2.60]) dnl we use YAT_FIND_YAT
    200200  AC_REQUIRE([YAT_FIND_YAT])  dnl
    201201  if test "$yat_config" != "no"; then
     
    253253AC_DEFUN([YAT_CHECK_LIB],
    254254[
    255   AC_PREREQ([2.58]) dnl we use YAT_FIND_YAT
     255  AC_PREREQ([2.60]) dnl we use YAT_FIND_YAT
    256256  AC_REQUIRE([YAT_FIND_YAT])  dnl
    257257  if test "$yat_config" != "no"; then
  • trunk/test/fileutil_test.cc

    r2209 r2217  
    181181  }
    182182
     183  // checking permissions on non-existence file in `/'
     184  try {
     185    suite.err() << "FileUtil Test 7" << std::endl;
     186     // intermediate dir must be unique!
     187    utility::FileUtil file("/theplu_yat_fileutil_test.sdf34DSF");
     188    if(!suite.add(file.permissions("r") == 0)) {
     189      suite.err() << "  r permission failed on " << file.path() << std::endl;
     190    }
     191  }
     192  catch (utility::IO_error e) {
     193    suite.add(false);
     194    suite.err() << e.what() << std::endl;
     195  }
     196
     197
    183198  return suite.return_value();
    184199}
  • trunk/yat/utility/FileUtil.cc

    r2125 r2217  
    66  Copyright (C) 2006 Jari Häkkinen
    77  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    8   Copyright (C) 2009 Peter Johansson
     8  Copyright (C) 2009, 2010 Peter Johansson
    99
    1010  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    6666    if (!exists()) {
    6767      std::string::size_type pos=path_.find_last_of('/');
    68       tryme = ( (pos!=std::string::npos) ? path_.substr(0,pos) : "." );
     68      if (pos == std::string::npos)
     69        tryme = ".";
     70      else if (pos == 0)
     71        tryme = "/";
     72      else
     73        tryme.resize(pos);
    6974    }
    7075
Note: See TracChangeset for help on using the changeset viewer.