Skip to content

Commit

Permalink
install: Use symlink without path
Browse files Browse the repository at this point in the history
This is how other libraries do it and allows to move files around
without having to adjust the symlinks.

Signed-off-by: Guido Günther <[email protected]>
  • Loading branch information
agx committed Nov 28, 2024
1 parent e14f3ae commit bc31dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [ "$ARG1" == "install" ]; then

"${SUDO}" mkdir -p "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/pkgconfig"
"${SUDO}" cp "$SCRIPT_DIR/@LIB_NAME@" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@.@VERSION@"
"${SUDO}" ln -s "@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@.@VERSION@" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@"
"${SUDO}" ln -s "@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@.@VERSION@" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@.@SO_NAME@"
"${SUDO}" ln -s "@LIB_NAME@.@VERSION@" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@"
"${SUDO}" ln -s "@LIB_NAME@.@VERSION@" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/@LIB_NAME@.@SO_NAME@"
"${SUDO}" cp "$SCRIPT_DIR/govarnam.pc" "${DESTDIR}@INSTALL_PREFIX@@LIBDIR@/pkgconfig/"

"${SUDO}" mkdir -p "${DESTDIR}@INSTALL_PREFIX@/include/libgovarnam"
Expand Down

0 comments on commit bc31dda

Please sign in to comment.