Skip to content

Commit

Permalink
path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aarjaneiro committed Mar 17, 2021
1 parent 30aaad9 commit 0fffb56
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ endif ()
# Config
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/configure ${CMAKE_SOURCE_DIR} ${Python3_LIBRARIES})
message("Moving assets")
execute_process(COMMAND cp -r ${CMAKE_SOURCE_DIR}/src/assets ${CMAKE_BINARY_DIR}/assets)
execute_process(COMMAND cp -r ${CMAKE_SOURCE_DIR}/src/assets ${CMAKE_BINARY_DIR})
execute_process(COMMAND cp ${CMAKE_SOURCE_DIR}/scripts/install_user.sh ${CMAKE_BINARY_DIR})
execute_process(COMMAND cp ${CMAKE_SOURCE_DIR}/scripts/QtLean ${CMAKE_BINARY_DIR})

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ To use the configured Lean directory elsewhere, simply execute `cp -r your/path/
Installation
------------
After building, run the `install_user.sh` script in the build directory. Note that you will likely need to run this as a
super user.
super user.
1 change: 0 additions & 1 deletion scripts/QtLean
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ if [[ "$PWD" != *"Lean"* ]]; then
fi
(ln -s ../assets . && ln -s ../qtlean .) || echo "WARNING: Was not able to make links!"
./qtlean
rm -r assets
rm qtlean
6 changes: 3 additions & 3 deletions scripts/install_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ cat <<EOF >>/usr/bin/QtLean
if [[ "$PWD" != *Lean* ]]; then
echo "WARNING: qtlean should be run from Lean's root directory."
fi
ln -s /usr/lib/qtlean/* . || echo "WARNING: Was not able to make links!"
ln -s /usr/lib/qtlean/qtlean . || echo "WARNING: Was not able to make links!"
cp -r /usr/lib/qtlean/assets . || echo "WARNING: Was not able to make config!"
./qtlean
rm -r assets
rm qtlean
EOF
chmod 755 /usr/bin/qtlean
chmod 755 /usr/bin/QtLean

0 comments on commit 0fffb56

Please sign in to comment.