Commit graph

76 commits

Author SHA1 Message Date
Paul Beckingham
14e047e7c4 util: Migrated osName to libshared 2018-05-13 22:21:16 -04:00
Paul Beckingham
88516acdaa Copyright update 2018-05-13 20:50:26 -04:00
Paul Beckingham
74e50359b5 util: Migrated obfuscateText calls to libshared 2018-05-13 20:40:34 -04:00
Paul Beckingham
ec84d0f372 util: Migrated optionalBlankLine from text 2018-05-13 20:31:47 -04:00
Paul Beckingham
b4e4727887 util: Migrated strippedLength from text 2018-05-13 20:31:11 -04:00
Paul Beckingham
14e3038571 util: Migrated nontrivial from text 2018-05-13 20:30:51 -04:00
Paul Beckingham
9ae171f57c util: Migrated obfuscateText from text 2018-05-13 20:30:34 -04:00
Paul Beckingham
db0f8d33e1 util: Removed confirm 2018-05-13 20:27:57 -04:00
Paul Beckingham
f99fc16e14 util: Removed execute 2018-05-13 20:27:42 -04:00
Paul Beckingham
4bbb5fadb3 util: Removed formatBytes 2018-05-13 20:27:23 -04:00
Paul Beckingham
8a43f4902d libhsared: migrating from local to libshared 2018-05-13 20:26:34 -04:00
Paul Beckingham
abefdd506c Cleanup: Removed redundant processing of OS name 2018-05-13 19:10:06 -04:00
Kent R. Spillner
933b2d8ebe OpenBSD also provides uuid support directly in its libc, same as FreeBSD. 2016-01-15 12:35:10 -05:00
Paul Beckingham
641d232dea Copyright: Updated to 2016 2015-12-31 15:06:43 -05:00
Paul Beckingham
c346cf9395 Portability: Use fcntl instead of flock
- POSIX file locking mechanism, eliminating platform-specific code.
2015-05-02 11:47:39 -04:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
e15907f3f1 Code Cleanup
- Removed unused uti.cpp indentTree function.
2014-09-07 17:32:46 -04:00
Paul Beckingham
adee92a6b9 Code Cleanup
- Removed unused util.cpp escape function.
2014-09-07 17:27:50 -04:00
Paul Beckingham
66bb5b3906 Code Cleanup
- Removed unused util.cpp encode and decode functions.
2014-09-07 17:25:47 -04:00
Paul Beckingham
bffc7a2ac8 Code Cleanup
- Removed unused util.cpp combine function.
2014-09-07 17:14:03 -04:00
Paul Beckingham
4aa79dccfa Code Cleanup
- Removed unused util.cpp round_up_to and burndown_size functions.
2014-09-07 17:10:06 -04:00
Paul Beckingham
4f54578241 Code Cleanup
- Removed unused util.cpp compressIds function.
2014-09-07 16:57:05 -04:00
Paul Beckingham
8a31ccabdc Code Cleanup
- Removed unused util.cpp delay function.
2014-09-07 16:48:42 -04:00
Paul Beckingham
be104ee7c4 Code Cleanup
- Removed unused util.cpp confirm3 function.
2014-09-07 16:46:20 -04:00
Paul Beckingham
df744d5c98 Code Cleanup
- Removed unused util.cpp ::execute variant.
2014-08-30 23:43:58 -04:00
Paul Beckingham
07b7fe4541 Util
- Added new 'execute' function that provides input and captures output.
2014-08-30 23:31:23 -04:00
Paul Beckingham
820c327a81 Util
- Made arg vector const.
- Applied coding conventions.
2014-08-30 23:27:49 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
04e0df6965 FreeBSD
- Converted __FreeBSD__ to FREEBSD for consistency.
2013-09-14 11:51:56 -04:00
Pietro Cerutti
da7cc6eed7 Fix uuid on FreeBSD
In FreeBSD, just as in DARWIN, uuid functions are in libc and no external libuuid is required.
The API is quite different from Linux's though, so a different implementation of uuid () (util.cpp) is needed.
2013-09-14 11:38:47 -04:00
Paul Beckingham
c92631b4b0 Code Cleanup
- One less include needed.
2013-07-20 16:45:01 -04:00
Martin Natano
fcfd50bd25 require libuuid
- require libuuid at build time and remove insufficiently seeded
  replacement for uuid()
2013-07-20 15:52:42 -04:00
Paul Beckingham
d03c4cda8a Build Error
- Many files were missing an explicit cmake.h include.  Some were not including
  it at all.  Now it's used almost everywhere.

(cherry picked from commit 82ae86979c497e6d1d0c6b2b5a55aa379ec82c98)
2013-06-02 13:57:36 -04:00
Paul Beckingham
773b55d374 Code Cleanup
- Removed L10N define.  It served its purpose.
2013-04-07 23:50:51 -04:00
Paul Beckingham
1dccd29643 Copyright 2013
- Updated copyright notices.
2013-03-04 17:47:12 -05:00
Scott Kostyshak
be5dc8ab90 Bug #1056
- Fix #1056: the 'projects' command now outputs abstract parents
  and reduces repetition by not printing parent names in front of
  children names.
- Project name indentation is not affected by the first character
  being a period and/or the last character being a period.
- Unit tests for above.
2012-09-23 08:07:11 -04:00
Owen Clarke
a655be823b Bug #1030
- Added portable implementation of timegm for non GNU/BSD platforms that
  don't have their own implementation
- Removed the use of tm_gmtoff on non GNU/BSD platforms that don't have
  it as part of the tm struct in time.h
- Added CMake tests HAVE_TIMEGM and HAVE_TM_GMTOFF
2012-07-16 22:45:11 +10:00
Paul Beckingham
95e36d1145 Enhancement
- Broke the indentTree function into two pieces - one that processes
  a list, the other that processes a single item.  This makes it more
  efficient for use places that have only one element.
2012-03-25 16:54:13 -04:00
Paul Beckingham
6580095002 Copyright
- Year change.
2012-01-02 23:32:10 -05:00
Paul Beckingham
0001457612 Enhancement
- Added indentTree function that will provide the basis for a new 'projects'
  command, and potentially more.  Includes unit tests.  Based on a patch from
  Ralph Bean.
2011-12-27 15:32:51 -05:00
Wilhelm Schuermann
30a97f5f52 Cleanup
- Removed unnecessary definitions of max() and min(), replaced existent calls
  with std::max().  Precursor to Bugfix #887.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-12-18 10:13:21 -05:00
Johannes Schlatow
d8d2060b39 Bug #871
- Fixed escaping of spaces for scp and curl
2011-11-30 00:12:20 +01:00
Federico Hernandez
8116c6a103 License
- moving task from GPL to MIT license
  top level src directory
2011-10-08 00:04:01 +02:00
Paul Beckingham
b84f212112 Code Cleanup
- Removed obsolete 'foreach' macro.
2011-09-03 13:54:11 -04:00
Paul Beckingham
e5acabc452 Helper functions
- Rescued the ::encode and ::decode funtions and put them in util.cpp.
  This is because 2.0 will still need to perform the same encode/decode
  operations without Att.cpp around.
2011-08-27 10:21:49 -04:00
Ben Boeckel
210b5f54d5 [PATCH] Compute the height of a burndown chart
Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-07-29 22:30:27 -04:00
Paul Beckingham
197524a5fc Expression
- Added configurable 'abbreviation.minimum' (default:2) setting to
  control how auto-completion works.
2011-07-20 10:51:13 -04:00
Owen Clarke
f5e155e54d Bug 795
- Improved detection of uuid library, and the uuid_unparse_lower
  function.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2011-06-29 22:38:41 -04:00
Paul Beckingham
8f85b0e194 Utils - combine
- Implemented combine, which takes two integer vectors and combines
  them resulting in a single vector contianing the unique values of
  both.
2011-05-28 09:49:22 -04:00