diff options
Diffstat (limited to '')
-rwxr-xr-x | compat32-tools/convertpkg-compat32 | 8 |
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 \; |