File: paths.sh

package info (click to toggle)
dotlrn 2.5.0+dfsg-6+wheezy4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 108,272 kB
  • sloc: tcl: 219,601; sql: 202,152; xml: 127,658; java: 7,268; php: 4,780; sh: 2,486; perl: 1,207; makefile: 137
file content (16 lines) | stat: -rwxr-xr-x 385 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# This shell script will recurse through the packages directory, searching
# for java/src directory trees.  It will append any of these directories to
# the java CLASSPATH in the current environment.

curdir=`pwd`

for dir in `find . -type d | grep "java\/src$"`
do
    CLASSPATH=$CLASSPATH:${curdir}`echo $dir | sed -e s/\.//`
done

# Just to be sure....

export CLASSPATH