diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-22 14:04:53 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-03-22 14:04:53 +0000 |
commit | fc973b73be08cdc40754d1c0cae67a3d7df8ac8b (patch) | |
tree | 5c77f6f474a92b7ce0750b26381e54efc3d254ee | |
parent | 177e5f8396df2a66541aa04f40658c3dd9115af7 (diff) | |
download | flex-fc973b73be08cdc40754d1c0cae67a3d7df8ac8b.tar.gz |
flex.morph: use PREFIX and make busybox friendly
busybox ln and chmod don't accept -v, so remove that
Also use PREFIX in all applicable paths
-rw-r--r-- | flex.morph | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,16 +3,16 @@ "kind": "chunk", "configure-commands": [ "./autogen.sh", - "./configure --prefix=/usr" + "./configure --prefix=\"$PREFIX\"" ], "build-commands": [ "make dist_doc_DATA=" ], "install-commands": [ "make dist_doc_DATA= DESTDIR=\"$DESTDIR\" install", - "ln -sv libfl.a \"$DESTDIR/usr/lib/libl.a\"", - "echo '#!/bin/sh' >\"$DESTDIR/usr/bin/lex\"", - "echo 'exec /usr/bin/flex -l \"$@\"' >>\"$DESTDIR/usr/bin/lex\"", - "chmod -v 755 \"$DESTDIR/usr/bin/lex\"" + "ln -s libfl.a \"$DESTDIR$PREFIX/lib/libl.a\"", + "echo "#!$PREFIX/bin/sh" >\"$DESTDIR$PREFIX/bin/lex\"", + "echo 'exec '\"$PREFIX\"'/bin/flex -l \"$@\"' >>\"$DESTDIR$PREFIX/bin/lex\"", + "chmod 755 \"$DESTDIR$PREFIX/bin/lex\"" ] } |