From 327b05574f0dc1b1046c72401256ce5afd3e3247 Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Tue, 02 Apr 2024 11:21:42 +0200 Subject: [PATCH] python/PyNUTClient: update to 2.8.2 --- tools/cloney | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/tools/cloney b/tools/cloney index c0174c2..5218daa 100755 --- a/tools/cloney +++ b/tools/cloney @@ -65,7 +65,7 @@ gsed -e 's,^\./,,' | \ while read i; do - mkdir -p "${destdir}/$i" + mkdir -p "${destdir}/$i" done # Copy files and symlinks, making sure we ignore the gnu-patch backup @@ -75,11 +75,29 @@ gsed -e 's,^\./,,' | \ while read i; do - rm -f "${destdir}/$i" - ln "${srcdir}/$i" "${destdir}/$i" + rm -f "${destdir}/$i" + ln "${srcdir}/$i" "${destdir}/$i" done elif [ "$CLONEY_MODE" = "copy" ]; then - cp -r ${srcdir}/* ${destdir}/ +cd ${srcdir} +gfind . -type d | \ + grep -v '^.$' | \ + gsed -e 's,^\./,,' | \ + while read i; +do + mkdir -p "${destdir}/$i" +done + +# Copy files and symlinks, making sure we ignore the gnu-patch backup +# files, too. +gfind . -type f -o -type l | \ + egrep -v '~[0-9]+~' | \ + gsed -e 's,^\./,,' | \ + while read i; +do + rm -f "${destdir}/$i" + cp -a "${srcdir}/$i" "${destdir}/$i" +done else echo "CLONEY_MODE=$CLONEY_MODE not supported" exit 1 -- Gitblit v1.9.3