diff -Nru libstropt-0.1.1/CMakeLists.txt libstropt-0.1.2/CMakeLists.txt --- libstropt-0.1.1/CMakeLists.txt 2020-08-13 12:44:50.000000000 +0000 +++ libstropt-0.1.2/CMakeLists.txt 2020-12-08 14:43:40.000000000 +0000 @@ -31,3 +31,6 @@ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) add_subdirectory(man) + +add_custom_target(uninstall + "${CMAKE_COMMAND}" -P "${PROJECT_SOURCE_DIR}/Uninstall.cmake") diff -Nru libstropt-0.1.1/debian/changelog libstropt-0.1.2/debian/changelog --- libstropt-0.1.1/debian/changelog 2020-09-26 11:01:06.000000000 +0000 +++ libstropt-0.1.2/debian/changelog 2021-01-08 18:37:36.000000000 +0000 @@ -1,3 +1,10 @@ +libstropt (0.1.2-1) unstable; urgency=medium + + * New Upstream Release + * d/control: Standard version bumped to 4.5.1 + + -- Andrea Capriotti Fri, 08 Jan 2021 19:37:36 +0100 + libstropt (0.1.1-1) unstable; urgency=medium * New Upstream release diff -Nru libstropt-0.1.1/debian/control libstropt-0.1.2/debian/control --- libstropt-0.1.1/debian/control 2020-09-26 11:00:38.000000000 +0000 +++ libstropt-0.1.2/debian/control 2021-01-08 18:37:32.000000000 +0000 @@ -3,7 +3,7 @@ Maintainer: Debian VirtualSquare Team Uploaders: Mattia Biondi , Renzo Davoli , Andrea Capriotti Build-Depends: debhelper-compat (= 13), cmake (>= 3.12) -Standards-Version: 4.5.0 +Standards-Version: 4.5.1 Section: libs Homepage: http://www.virtualsquare.org/ Vcs-Git: https://salsa.debian.org/virtualsquare-team/libstropt.git diff -Nru libstropt-0.1.1/stropt.c libstropt-0.1.2/stropt.c --- libstropt-0.1.1/stropt.c 2020-08-13 12:44:50.000000000 +0000 +++ libstropt-0.1.2/stropt.c 2020-12-08 14:43:40.000000000 +0000 @@ -1,20 +1,15 @@ /* * stropt: Parse options from a string (supports quotation, option arguments, no malloc needed for parsing) * - * Copyright (C) 2018 Renzo Davoli VirtualSquare team. + * Copyright (C) 2018/2020 Renzo Davoli VirtualSquare team. * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or (at + * your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Lesser General Public License + * along with this library; if not, see . * */ diff -Nru libstropt-0.1.1/stropt.h libstropt-0.1.2/stropt.h --- libstropt-0.1.1/stropt.h 2020-08-13 12:44:50.000000000 +0000 +++ libstropt-0.1.2/stropt.h 2020-12-08 14:43:40.000000000 +0000 @@ -1,6 +1,8 @@ #ifndef STROPT_H #define STROPT_H +#include + /* stropt parses a list of options from a string. options can be separated by spaces, commas, semicolons, tabs or new line. e.g. "uppercase,bold,underlined" diff -Nru libstropt-0.1.1/Uninstall.cmake libstropt-0.1.2/Uninstall.cmake --- libstropt-0.1.1/Uninstall.cmake 1970-01-01 00:00:00.000000000 +0000 +++ libstropt-0.1.2/Uninstall.cmake 2020-12-08 14:43:40.000000000 +0000 @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.13) +set(MANIFEST "${CMAKE_CURRENT_BINARY_DIR}/install_manifest.txt") + +if(NOT EXISTS ${MANIFEST}) + message(FATAL_ERROR "Cannot find install manifest: '${MANIFEST}'") +endif() + +file(STRINGS ${MANIFEST} files) +foreach(file ${files}) + if(EXISTS ${file} OR IS_SYMLINK ${file}) + message(STATUS "Removing: ${file}") + + execute_process( + COMMAND rm -f ${file} + RESULT_VARIABLE retcode + ) + + if(NOT "${retcode}" STREQUAL "0") + message(WARNING "Failed to remove: ${file}") + endif() + endif() +endforeach(file)