aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Use do/while in guard_* macros to make them behave more like functionsJoseph Hunkeler2024-03-101-4/+4
|
* Reset console color before writingJoseph Hunkeler2024-03-061-0/+1
|
* Fix path_basenameJoseph Hunkeler2024-03-061-1/+1
| | | | * Return original pointer when path separator is not present
* Prototypes documentationJoseph Hunkeler2024-03-041-37/+19
| | | | | | | Includes minor changes: * Rename jfrt_upload_set_defaults to jfrt_upload_init * Move jfrt_auth_init to artifactory.c * Adds missing error handling to git_describe and git_rev_parse
* xmkstemp allow setting file modeJoseph Hunkeler2024-03-041-2/+2
| | | | * add usage comment function
* Extract git repository informationJoseph Hunkeler2024-02-181-1/+21
| | | | * First pass; this will eventually be used to rewite exact commit refs in YAML delivery files
* Add path_store functionJoseph Hunkeler2024-02-121-0/+42
|
* General improvementsJoseph Hunkeler2024-01-301-3/+3
| | | | | | | | | | | * Fix segfault related to Delivery.storage.tmpdir not being initialized properly * Add delivery_format_str() to make delivery rules easier to maintain * Test configurations can accept their own runtime variables * When no conda package or python packages are to be installed, indicate that state by printing "N/A" in output summary * Change shell_safe() accept a string instead of an array * Add support for artifactory client certs key/path * Initial pass at defining an artifactory repo destination (not fully implemented yet) * Add missing line feeds to error messages during ini config initialization
* guard_free() all pointersJoseph Hunkeler2023-12-101-5/+4
|
* Use OMC_DIRSTACK_MAX instead of magic numbersJoseph Hunkeler2023-12-101-1/+1
|
* Add isempty_dir() functionJoseph Hunkeler2023-12-101-0/+19
|
* Add path_dirname() functionJoseph Hunkeler2023-12-101-0/+22
|
* Use TMPDIR, and fail when script cannot be executed within that filesystemJoseph Hunkeler2023-11-201-1/+1
|
* Fix warnings and add xmkstempJoseph Hunkeler2023-11-201-6/+21
| | | | | | * Reduce stack usage for status variable in msg() * Bugfix: write OMC_COLOR_RESET to the requested stream instead of stdout * Add helper function xmkstemp to avoid clutter when using disposable files
* Use globalsJoseph Hunkeler2023-11-201-0/+5
| | | | | | * continue_on_error set by omc config * always_update_base_environment set by omc config * Passing OMC_MSG_RESTRICT flag to msg() will print only in verbose mode
* Replaces BUFSIZ with OMC_BUFSIZJoseph Hunkeler2023-11-201-4/+4
|
* Rebrand for the last timeJoseph Hunkeler2023-11-201-1/+3
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* msg() function is now type voidJoseph Hunkeler2023-10-311-2/+9
| | | | * Add debug_shell() function to interactively examine the runtime environment
* Initial commitJoseph Hunkeler2023-10-261-0/+417