From 70fec6786fe0aa861028e3025257e40365836043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9l=C3=A9my=20von=20Haller?= Date: Thu, 4 Jul 2024 15:02:53 +0200 Subject: [PATCH] Update moderncppkafka.sh --- moderncppkafka.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/moderncppkafka.sh b/moderncppkafka.sh index 1e7a1330c2..6a1b5bc4fa 100644 --- a/moderncppkafka.sh +++ b/moderncppkafka.sh @@ -5,20 +5,15 @@ requires: - librdkafka source: https://github.com/morganstanley/modern-cpp-kafka.git --- -#!/bin/bash -e +#!/bin/bash -e -# this is header only library, so we can just copy it +# this is header only library, so we can just copy it mkdir -p "$INSTALLROOT" cp -r "$SOURCEDIR/include" "$INSTALLROOT/include" +rm "$INSTALLROOT/include/CMakeLists.txt" # for some reason it is there -# Modulefile -MODULEDIR="$INSTALLROOT/etc/modulefiles" -MODULEFILE="$MODULEDIR/$PKGNAME" - +# Modulefile mkdir -p "etc/modulefiles" alibuild-generate-module --lib > "etc/modulefiles/$PKGNAME" - -cat << EOF >> etc/modulefiles/$PKGNAME -prepend-path ROOT_INCLUDE_PATH \$PKG_ROOT/include -EOF mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles +