wok-current rev 9533

Fixed erlang softlinks in /usr/bin folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Apr 08 03:22:58 2011 +0000 (2011-04-08)
parents ebe2832c25d5
children a5912cbfcc85
files erlang/receipt
line diff
     1.1 --- a/erlang/receipt	Fri Apr 08 02:36:59 2011 +0000
     1.2 +++ b/erlang/receipt	Fri Apr 08 03:22:58 2011 +0000
     1.3 @@ -27,13 +27,13 @@
     1.4  	--sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
     1.5  	make -j 1 &&
     1.6  	make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
     1.7 -	for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
     1.8 -		 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
     1.9 +	for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
    1.10 +		 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
    1.11  	do
    1.12  		sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
    1.13  	done
    1.14 -	for i in _pkg/usr/bin/* ; do
    1.15 -		ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
    1.16 +	for file in $(ls $DESTDIR/usr/bin); do
    1.17 +		ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
    1.18  	done
    1.19  }
    1.20