mirror of
https://github.com/thiagoralves/OpenPLC.git
synced 2025-05-09 00:21:52 +08:00
Small script fix
This commit is contained in:
parent
71825a2a00
commit
9439a78e2f
@ -48,7 +48,7 @@ int main()
|
||||
if (!fork())
|
||||
{
|
||||
//executes OpenPLC
|
||||
execl("./openplc", "./openplc", (char *) 0);
|
||||
execl("./core/openplc", "./core/openplc", (char *) 0);
|
||||
}
|
||||
|
||||
else
|
10
build.sh
10
build.sh
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user