1
0
mirror of https://github.com/thiagoralves/OpenPLC.git synced 2025-05-08 16:19:07 +08:00

Small script fix

This commit is contained in:
thiagoralves 2016-03-14 17:56:10 -05:00
parent 71825a2a00
commit 9439a78e2f
2 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@ int main()
if (!fork())
{
//executes OpenPLC
execl("./openplc", "./openplc", (char *) 0);
execl("./core/openplc", "./core/openplc", (char *) 0);
}
else

View File

@ -7,17 +7,17 @@ echo [LADDER]
cd ..
cp ./OPLC_Compiler_source/OPLC_Compiler ./
./OPLC_Compiler ./ladder_files/blank_ladder.ld &> /dev/null
rm ./core/ladder.cpp
rm -f ./core/ladder.cpp
mv ./ladder.cpp ./core/
cd core
rm ./hardware_layer.cpp
echo [OPLC_STARTER]
cd OPLC_starter_src
cd OPLC_starter_source
g++ *.cpp -o OPLC_starter
cd ..
cp ./OPLC_starter_src/OPLC_starter ./
cp ./OPLC_starter_source/OPLC_starter ./
cd core
rm -f ./hardware_layer.cpp
echo The OpenPLC needs a driver to be able to control physical or virtual hardware.
echo Please select the driver you would like to use:
OPTIONS="Blank Fischertechnik RaspberryPi Simulink Unipi"