diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-11-19 16:10:28 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-11-19 16:10:28 +0100 |
commit | d031104737be739498a4de7b3c20fe178f909e03 (patch) | |
tree | e91e21abc5d90713624732d8501a78b23be6157d /debian/post-build-nx.sh | |
parent | 65f882e05bcd8a1a273e5c0fb237d215666c946e (diff) | |
download | nx-libs-d031104737be739498a4de7b3c20fe178f909e03.tar.gz nx-libs-d031104737be739498a4de7b3c20fe178f909e03.tar.bz2 nx-libs-d031104737be739498a4de7b3c20fe178f909e03.zip |
add /debian folder
Diffstat (limited to 'debian/post-build-nx.sh')
-rwxr-xr-x | debian/post-build-nx.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/post-build-nx.sh b/debian/post-build-nx.sh new file mode 100755 index 000000000..4c94956aa --- /dev/null +++ b/debian/post-build-nx.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -ex + +# create nx-X11/.build-exports +mkdir -p nx-X11/.build-exports/include +mkdir -p nx-X11/.build-exports/lib + +# copy headers (libnx-x11-dev) +cp -aL nx-X11/exports/include/* nx-X11/.build-exports/include + +# copy libs (libnx-x11) +find nx-X11/exports/lib/ | egrep "^.*\.so$" | while read libpath; do + libfile=$(basename $libpath) + libdir=$(dirname $libpath) + mkdir -p ${libdir//exports/.build-exports} + cp -L $libpath ${libdir//exports/.build-exports} + find $libdir/$libfile.* | while read symlink; do + ln -s $libfile ${libdir//exports/.build-exports}/$(basename $symlink) + done +done + +exit 0
\ No newline at end of file |