Crombie Tools
link.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 ##
4 # @file lib/link.sh
5 #
6 # Softlinks compiled shared objects in CrombieTools/lib directory
7 # with proper library names.
8 # This is only used for convenience if you are compiling C macros.
9 #
10 # @author Daniel Abercrombie <dabercro@mit.edu>
11 #
12 
13 for file in `ls ../*/src/*.so`
14 do
15 
16  filename=${file##*/}
17  classname=${filename%%_cc.so}
18 
19  test -f lib${classname}.so || ln -s $file lib${classname}.so
20 
21 done