Initial commit.
This commit is contained in:
commit
f991a74f3c
|
@ -0,0 +1 @@
|
|||
/build/
|
|
@ -0,0 +1,29 @@
|
|||
cmake_minimum_required (VERSION 3.2)
|
||||
project(feiertagebot
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBXDG_BASEDIR REQUIRED libxdg-basedir)
|
||||
pkg_check_modules(LIBCONFIG REQUIRED libconfig++)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG
|
||||
"${CMAKE_CXX_FLAGS_DEBUG} -Wpedantic -Wall -Wextra -g -Og -fno-omit-frame-pointer")
|
||||
|
||||
include_directories(${PROJECT_BINARY_DIR})
|
||||
include_directories(${LIBXDG_BASEDIR_INCLUDE_DIRS})
|
||||
include_directories(${LIBCONFIG_INCLUDE_DIRS})
|
||||
|
||||
link_directories(${LIBXDG_BASEDIR_LIBRARY_DIRS})
|
||||
link_directories(${LIBCONFIG_LIBRARY_DIRS})
|
||||
|
||||
add_executable(${CMAKE_PROJECT_NAME} feiertagebot.cpp)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME}
|
||||
"${LIBXDG_BASEDIR_LDFLAGS} ${LIBCONFIG_LDFLAGS}"
|
||||
"-lstdc++fs")
|
||||
install(TARGETS ${CMAKE_PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
@ -0,0 +1,20 @@
|
|||
= feiertagebot
|
||||
|
||||
*feiertagebot* ist ein Mastodon-bot, der über anstehende feiertage in
|
||||
Deutschland informiert. Die daten stammen von
|
||||
https://github.com/wlbr/feiertage.
|
||||
|
||||
== Installation und benutzung
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
wget https://schlomp.space/tastytea/feiertagebot/raw/branch/master/feiertagebot
|
||||
chmod +x feiertagebot
|
||||
echo "token=<your token here>" > ~/.config/feiertagebot.cfg
|
||||
echo "instance=social.example.com" >> ~/.config/feiertagebot.cfg
|
||||
./feiertagebot
|
||||
----
|
||||
|
||||
== Lizenz
|
||||
|
||||
CC-0 / Public Domain
|
|
@ -0,0 +1,8 @@
|
|||
// Author: tastytea <tastytea@tastytea.de>
|
||||
// CC-0 / Public Domain
|
||||
// Version: 2019-02-11_1
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue