Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorengarenar committed Dec 21, 2020
1 parent fbff7a2 commit 2fce724
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.2] - 2020-12-21

### Added

- LGTM and CodeFactor project badges in README

### Changed

- Rename `LIB_NAME` to `XDGDIRS` in CMakeLists.txt
- Use `${PROJECT_VERSION}` instead of `${CMAKE_PROJECT_VERSION}"`

### Fixed

- Assignment of value instead of comparison (src/xdgdirs.c:35)

## [1.0.1] - 2020-12-20

### Added
Expand All @@ -31,5 +46,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- README, CHANGELOG and AUTHORS

[unreleased]: https://github.com/Jorengarenar/libXDGdirs/compare/v1.0.0...HEAD
[1.0.2]: https://github.com/Jorengarenar/libXDGdirs/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/Jorengarenar/libXDGdirs/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/Jorengarenar/libXDGdirs/releases/tag/v1.0.0
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ project(libXDGdirs
VERSION 1.0.1
LANGUAGES C)

set(LIB_NAME "XDGdirs")
set(XDGDIRS "XDGdirs")

add_definitions(-DXDGDIRS_VER="${CMAKE_PROJECT_VERSION}")
add_definitions(-DXDGDIRS_VER="${PROJECT_VERSION}")

set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
Expand Down Expand Up @@ -36,4 +36,4 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_subdirectory(examples/)
endif()

install(TARGETS "${LIB_NAME}")
install(TARGETS "${XDGDIRS}")
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ libXDGdirs
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/547fc2ec9e314ad593c14d84a7d4fab5)](https://www.codacy.com/gh/Jorengarenar/libXDGdirs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Jorengarenar/libXDGdirs&utm_campaign=Badge_Grade)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/4532/badge)](https://bestpractices.coreinfrastructure.org/projects/4532)
[![Doxygen](https://github.com/Jorengarenar/libXDGdirs/workflows/Doxygen/badge.svg)](https://github.com/Jorengarenar/libXDGdirs/actions?query=workflow%3ADoxygen)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/Jorengarenar/libXDGdirs.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Jorengarenar/libXDGdirs/context:cpp)
[![CodeFactor](https://www.codefactor.io/repository/github/jorengarenar/libxdgdirs/badge)](https://www.codefactor.io/repository/github/jorengarenar/libxdgdirs)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

An implementation of [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) (_XDGBDS_)
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ file(GLOB sources RELATIVE ${PROJECT_SOURCE_DIR}/examples *.c)
foreach(source ${sources})
string(REPLACE ".c" "" bin ${source})
add_executable(${bin} ${source})
target_link_libraries(${bin} ${LIB_NAME})
target_link_libraries(${bin} ${XDGDIRS})
endforeach()
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(CMAKE_C_OUTPUT_EXTENSION_REPLACE YES)
add_library("${LIB_NAME}" STATIC xdgdirs.c)
set_target_properties("${LIB_NAME}" PROPERTIES PUBLIC_HEADER "src/xdgdirs.h")
add_library("${XDGDIRS}" STATIC xdgdirs.c)
set_target_properties("${XDGDIRS}" PROPERTIES PUBLIC_HEADER "src/xdgdirs.h")
2 changes: 1 addition & 1 deletion src/xdgdirs.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void xdgDirs_getenv(const char** ptr, const char* var, const char* fmt, .
}

if (fmt == NULL) {
*ptr == NULL;
*ptr = NULL;
}

va_list ap;
Expand Down

0 comments on commit 2fce724

Please sign in to comment.