diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-22 13:44:27 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-22 13:44:27 +0000 |
commit | 956cdb4280fc167fadb8a7706d0fde6f41f23117 (patch) | |
tree | d206c7f496b645fd2f6cd13996505e2918291eae | |
parent | a7671e592f04437c711258846b064900daee5a96 (diff) | |
download | ncurses-956cdb4280fc167fadb8a7706d0fde6f41f23117.tar.gz |
ncurses-postinstall: make busybox friendly
busybox shell commands don't support -v, so remove it
-rwxr-xr-x | ncurses-morph-postinstall.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ncurses-morph-postinstall.sh b/ncurses-morph-postinstall.sh index f9b8023..6500503 100755 --- a/ncurses-morph-postinstall.sh +++ b/ncurses-morph-postinstall.sh @@ -6,29 +6,29 @@ set -e # morph as less strings have to be escaped and comments are possible # some software expects to find libcurses in /lib -mkdir -pv "$DESTDIR/lib" -mv -v "$DESTDIR"/usr/lib/libncursesw.so.5* "$DESTDIR"/lib -ln -sfv ../../lib/libncursesw.so.5 "$DESTDIR"/usr/lib/libncursesw.so +mkdir -p "$DESTDIR/lib" +mv "$DESTDIR"/usr/lib/libncursesw.so.5* "$DESTDIR"/lib +ln -sf ../../lib/libncursesw.so.5 "$DESTDIR"/usr/lib/libncursesw.so # some linker tricks for libraries that look for non-wide character # versions of ncurses for lib in ncurses form panel menu; do # remove non-wide shared object - rm -vf "$DESTDIR/usr/lib/lib${lib}.so" + rm -f "$DESTDIR/usr/lib/lib${lib}.so" # use a linker script to find the wide character variant echo "INPUT(-l${lib}w)" >"$DESTDIR/usr/lib/lib${lib}.so" # symlink the non-shared library - ln -sfv "lib${lib}w.a" "$DESTDIR/usr/lib/lib${lib}.a" + ln -sf "lib${lib}w.a" "$DESTDIR/usr/lib/lib${lib}.a" done -ln -sfv libncurses++w.a "$DESTDIR/usr/lib/libncurses++.a" +ln -sf libncurses++w.a "$DESTDIR/usr/lib/libncurses++.a" # redirect software that looks for libcurses -rm -vf "$DESTDIR/usr/lib/libcursesw.so" +rm -f "$DESTDIR/usr/lib/libcursesw.so" echo "INPUT(-lncursesw)" >"$DESTDIR/usr/lib/libcursesw.so" -ln -sfv libncurses.so "$DESTDIR/usr/lib/libcurses.so" -ln -sfv libncursesw.a "$DESTDIR/usr/lib/libcursesw.a" -ln -sfv libncurses.a "$DESTDIR/usr/lib/libcurses.a" +ln -sf libncurses.so "$DESTDIR/usr/lib/libcurses.so" +ln -sf libncursesw.a "$DESTDIR/usr/lib/libcursesw.a" +ln -sf libncurses.a "$DESTDIR/usr/lib/libcurses.a" # install documentation -mkdir -pv "$DESTDIR/usr/share/doc/ncurses" -cp -v -R doc/* "$DESTDIR/usr/share/doc/ncurses" +mkdir -p "$DESTDIR/usr/share/doc/ncurses" +cp -R doc/* "$DESTDIR/usr/share/doc/ncurses" |