mirror of https://github.com/vitalif/phantomjs
Tweak the linux deploy script.
* Use exec to replace the bootstrap shell script * Name the bootstrap shell script `phantomjs` so that invocation is no different http://code.google.com/p/phantomjs/issues/detail?id=4131.6
parent
5c2e330a15
commit
1b53adec2b
|
@ -72,11 +72,12 @@ echo
|
||||||
|
|
||||||
echo -n "writing run script..."
|
echo -n "writing run script..."
|
||||||
# write run scripts
|
# write run scripts
|
||||||
run=$dest/phantomjs.sh
|
mv $dest/bin/phantomjs $dest/bin/phantomjs.bin
|
||||||
|
run=$dest/bin/phantomjs
|
||||||
echo '#!/bin/sh' >> $run
|
echo '#!/bin/sh' >> $run
|
||||||
echo 'path=$(dirname $(readlink -f $0))' >> $run
|
echo 'path=$(dirname $(dirname $(readlink -f $0)))' >> $run
|
||||||
echo 'export LD_LIBRARY_PATH=$path/lib' >> $run
|
echo 'export LD_LIBRARY_PATH=$path/lib' >> $run
|
||||||
echo '$path/lib/'$libld' $path/bin/phantomjs $@' >> $run
|
echo 'exec $path/lib/'$libld' $path/bin/phantomjs.bin $@' >> $run
|
||||||
chmod +x $run
|
chmod +x $run
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
|
@ -89,4 +90,3 @@ echo "done"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "you can now deploy $dest or $dest.tar.bz2"
|
echo "you can now deploy $dest or $dest.tar.bz2"
|
||||||
echo "run phantomjs on the target via $dest/phantomjs.sh"
|
|
||||||
|
|
Loading…
Reference in New Issue