summaryrefslogtreecommitdiffstats
path: root/compat32-tools
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-05-02 13:00:38 +0000
committer Eric Hameleers <alien@slackware.com>2015-05-02 13:00:38 +0000
commit9debbe8cb1f95dafd8bbb2e087c365790467b660 (patch)
treeced3270c727196256a36534576204cc51389fe1f /compat32-tools
parent39d1d91e1104283c2f82983eaad5d6c8d66f87b5 (diff)
downloadmultilib-9debbe8cb1f95dafd8bbb2e087c365790467b660.tar.gz
multilib-9debbe8cb1f95dafd8bbb2e087c365790467b660.tar.xz
Do it right this time
Diffstat (limited to 'compat32-tools')
-rwxr-xr-xcompat32-tools/convertpkg-compat328
1 files changed, 4 insertions, 4 deletions
diff --git a/compat32-tools/convertpkg-compat32 b/compat32-tools/convertpkg-compat32
index 5f12024..d1dab4a 100755
--- a/compat32-tools/convertpkg-compat32
+++ b/compat32-tools/convertpkg-compat32
@@ -195,12 +195,12 @@ fi
if [ "$PKGNAM" = "gtk+2" -o "$PKGNAM" = "gdk-pixbuf2" -o "$PKGNAM" = "pango" ];
then
find usr/bin -type f ! -name "*-32" -exec mv {} {}-32 \;
-elif [ "$PKGNAM" = "llvm" ];
- mkdir usr/bin/32
+elif [ "$PKGNAM" = "llvm" ]; then
+ mkdir -p usr/bin/32
for BIN in usr/bin/* ; do
- ln -s ../${BIN}-32 usr/bin/32/$BIN
+ ln -s ../$(basename $BIN)-32 usr/bin/32/$(basename $BIN)
done
- find usr/bin -type f ! -name "*-32" -exec mv {} {}-32 \;
+ find usr/bin -maxdepth 1 -type f ! -name "*-32" -exec mv {} {}-32 \;
elif [ -d usr/bin ]; then
mkdir ./32
find usr/bin -type f -exec mv {} ./32 \;