A couple of questions related to .sh script file for Ubuntu. the following is my script:
#!/bin/sh
source /opt/fslc-x11/2.2.1/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi
echo "./make-image-header.sh psplash-poky.png POKY"
./make-image-header.sh psplash-poky.png POKY
echo "autoreconf -vfi"
autoreconf -vfi
echo "./configure --host=x86_64-linux"
./configure --host=x86_64-linux
echo "make"
make
echo "****************** psplash DONE ****************** "
My questions are:
- using every single instruction in linux terminal all is ok: how can set the environment inside a script?
- supposing my script is outside the current folder, what's the right way to enter in a folder? I tried "cd" command as in terminal, but it doesn't run.