Skip to content

Commit

Permalink
[#150] Create symlinks for /usr/local prefix as well as /usr
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZemon committed Jan 20, 2019
1 parent b11959d commit 914a652
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
9 changes: 4 additions & 5 deletions docs/static-web/src/about.html
Expand Up @@ -16,21 +16,21 @@ <h2>Overview</h2>
</ul>
<p>Installation binaries make setup easy, and CMake functions make building complex applications quick. If you are
an Eclipse user, CMake provides a simple command that will generate an Eclipse project (no need for a special
Propeller plugin!). Students can take free advantage of JetBrains' new C++ IDE,
Propeller plugin). Students can take free advantage of JetBrains' C++ IDE,
(<a href="http://www.jetbrains.com/clion/">CLion</a>), which supports CMake out-of-the-box and is the
recommended tool for use with PropWare applications.</p>
<h1>About</h1>
<h2>Inspiration</h2>
<p>I've drawn inspiration from a lot of different projects over the years, but there are three big ones that
helped to form PropWare into what it is today more than anything else.</p>
helped to form PropWare into what it is today.</p>
<h3>Arduino</h3>
<p>Arduino is the king of “easy” in the microcontroller world. Though they aren't the fastest, and they
aren't the cheapest, they have a monopoly on documentation and users. I use
<a href="https://www.arduino.cc" target="_blank">www.arduino.cc</a> as my benchmark for ease of use and
documentation standards.</p>
<h3>TI's TivaWare</h3>
<p>My first introduction to a hardware abstraction layer was with TI's StellarisWare (now called TivaWare).
Itopened my eyes to a new world where I would be able to develop a complex application on a microcontroller,
It opened my eyes to a new world where I would be able to develop a complex application on a microcontroller,
accessing all of its hardware peripherals, without needing to pull out the datasheet every minute. I aim to
reproduce the same power and flexibility on the Parallax Propeller.</p>
<h3>SRLM's libpropeller</h3>
Expand All @@ -39,8 +39,7 @@ <h3>SRLM's libpropeller</h3>
sake, even before there were many users.</p>
<h2>Goals and Aspirations</h2>
<p>My goal is to provide both novice and expert users alike a single environment that approaches the
simplicity
of SimpleIDE or Arduino without compromising power or flexibility. I believe it is possible to create a
simplicity of SimpleIDE or Arduino without compromising power or flexibility. I believe it is possible to create a
single environment capable of introducing first-time programmers to the Propeller, as well as satisfying
a commercial-grade applications. There are lots of ways PropWare doesn't fit into this vision currently,
but it is an active and ongoing effort to make improvements every day.</p>
Expand Down
20 changes: 17 additions & 3 deletions packaging/postinst 100644 → 100755
@@ -1,8 +1,22 @@
#!/bin/bash
set -e
for cmake_relative_root in $(ls /usr/share | grep '^cmake') ; do
cmake_installs=$(find /usr/share/${cmake_relative_root} -maxdepth 1 -name Modules -type d)

create_links () {
root="${1}"
subdirectory="${2}"

cmake_installs=$(find ${root}/${subdirectory} -maxdepth 1 -name Modules -type d)
for d in ${cmake_installs} ; do
ln -s "/usr/share/PropWare/CMakeModules/FindPropWare.cmake" "${d}"
done
done
}

do_stuff () {
root="${1}"
for cmake_relative_root in $(ls "${root}" | grep '^cmake') ; do
create_links "${root}" "${cmake_relative_root}"
done
}

do_stuff /usr/share
do_stuff /usr/local/share
1 change: 1 addition & 0 deletions packaging/prerm 100644 → 100755
@@ -1,3 +1,4 @@
#!/bin/bash
set -e
find /usr/share -name 'FindPropWare.cmake' -type l -delete
find /usr/local/share -name 'FindPropWare.cmake' -type l -delete

0 comments on commit 914a652

Please sign in to comment.