From 7a07197c9730977af3789b28a89f0b4033543fb7 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Sun, 24 Jun 2012 11:46:49 +0200 Subject: [PATCH] Rename libftdi-config to libftdi1-config --- .gitignore | 2 +- CMakeLists.txt | 4 +- libftdi-config.in | 79 ---------------------------------------------------- libftdi.spec.in | 2 +- libftdi1-config.in | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 83 insertions(+), 83 deletions(-) delete mode 100644 libftdi-config.in create mode 100644 libftdi1-config.in diff --git a/.gitignore b/.gitignore index dcf277d..7a4ec72 100644 --- a/.gitignore +++ b/.gitignore @@ -38,7 +38,7 @@ examples/simple .*.swp # libftdi specific -libftdi-config +libftdi1-config libftdi.spec # CMake diff --git a/CMakeLists.txt b/CMakeLists.txt index 07f8bb9..c984827 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,8 +174,8 @@ install(FILES ${CMAKE_BINARY_DIR}/libftdi.pc ${CMAKE_BINARY_DIR}/libftdipp.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig) if(${UNIX}) - configure_file(${CMAKE_SOURCE_DIR}/libftdi-config.in ${CMAKE_BINARY_DIR}/libftdi-config @ONLY) - install(PROGRAMS ${CMAKE_BINARY_DIR}/libftdi-config DESTINATION bin) + configure_file(${CMAKE_SOURCE_DIR}/libftdi1-config.in ${CMAKE_BINARY_DIR}/libftdi1-config @ONLY) + install(PROGRAMS ${CMAKE_BINARY_DIR}/libftdi1-config DESTINATION bin) endif(${UNIX}) include(CPack) diff --git a/libftdi-config.in b/libftdi-config.in deleted file mode 100644 index a71de4e..0000000 --- a/libftdi-config.in +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh - -prefix=@prefix@ -exec_prefix=@exec_prefix@ -exec_prefix_set=no - -usage() -{ - cat <&2 -fi - -while test $# -gt 0; do - case "$1" in - -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac - - case $1 in - --prefix=*) - prefix=$optarg - if test $exec_prefix_set = no ; then - exec_prefix=$optarg - fi - ;; - --prefix) - echo_prefix=yes - ;; - --exec-prefix=*) - exec_prefix=$optarg - exec_prefix_set=yes - ;; - --exec-prefix) - echo_exec_prefix=yes - ;; - --version) - echo @VERSION@ - exit 0 - ;; - --cflags) - if test "@includedir@" != /usr/include ; then - includes="-I@includedir@" - fi - echo_cflags=yes - ;; - --libs) - echo_libs=yes - ;; - *) - usage 1 1>&2 - ;; - esac - shift -done - -if test "$echo_prefix" = "yes"; then - echo $prefix -fi -if test "$echo_exec_prefix" = "yes"; then - echo $exec_prefix -fi -if test "$echo_cflags" = "yes"; then - echo $includes -fi -if test "$echo_libs" = "yes"; then - echo -L@libdir@ -lftdi @LIBS@ -fi diff --git a/libftdi.spec.in b/libftdi.spec.in index ec4d063..bd95b0d 100644 --- a/libftdi.spec.in +++ b/libftdi.spec.in @@ -60,7 +60,7 @@ rm -fr $RPM_BUILD_ROOT %files devel %defattr(-,root,root) %doc doc/html doc/man -%{_bindir}/libftdi-config +%{_bindir}/libftdi1-config %{prefix}/include/*.h %{prefix}/include/*.hpp %{_libdir}/libftdi*.*a diff --git a/libftdi1-config.in b/libftdi1-config.in new file mode 100644 index 0000000..03a0291 --- /dev/null +++ b/libftdi1-config.in @@ -0,0 +1,79 @@ +#!/bin/sh + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +exec_prefix_set=no + +usage() +{ + cat <&2 +fi + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + if test $exec_prefix_set = no ; then + exec_prefix=$optarg + fi + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + exec_prefix_set=yes + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --version) + echo @VERSION@ + exit 0 + ;; + --cflags) + if test "@includedir@" != /usr/include ; then + includes="-I@includedir@" + fi + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +if test "$echo_prefix" = "yes"; then + echo $prefix +fi +if test "$echo_exec_prefix" = "yes"; then + echo $exec_prefix +fi +if test "$echo_cflags" = "yes"; then + echo $includes +fi +if test "$echo_libs" = "yes"; then + echo -L@libdir@ -lftdi @LIBS@ +fi -- 1.7.1