Cleanup of gccxml installs
authorLudwig Jäck <ludwig.jaeck@intra2net.com>
Fri, 31 May 2024 10:03:13 +0000 (12:03 +0200)
committerLudwig Jäck <ludwig.jaeck@intra2net.com>
Fri, 7 Jun 2024 08:02:01 +0000 (10:02 +0200)
Since libt2n migrates to castxml, gccxml files do not need to be installed

CMakeLists.txt
libt2n-gccxml.sh [deleted file]

index 74b3e4d..7ea6bb7 100644 (file)
@@ -126,9 +126,6 @@ set(datadir     ${CMAKE_INSTALL_PREFIX}/share)
 configure_file(${CMAKE_SOURCE_DIR}/libt2n.pc.in ${CMAKE_BINARY_DIR}/libt2n.pc @ONLY)
 install(FILES ${CMAKE_BINARY_DIR}/libt2n.pc DESTINATION lib/pkgconfig)
 
-# Installation of scripts
-install(PROGRAMS libt2n-gccxml.sh DESTINATION bin)
-
 # Subdirectories
 set(CPACK_SET_DESTDIR "ON")
 add_subdirectory(src)
diff --git a/libt2n-gccxml.sh b/libt2n-gccxml.sh
deleted file mode 100755 (executable)
index 2f7309f..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-# Filter "-pthread" option from newer gcc versions
-# as it's currently unsupported in gccxml.
-EOO=0
-while [[ $1 ]]; do
-if ! ((EOO)); then
-  case "$1" in
-    -pthread)
-      shift
-      ;;
-    --)
-      EOO=1
-      OPTIONS="$OPTIONS $1"
-      shift
-      ;;
-    *)
-      OPTIONS="$OPTIONS $1"
-      shift
-      ;;
-  esac
-else
-  OPTIONS="$OPTIONS $1"
-  shift
-fi
-done
-
-gccxml $OPTIONS