File: getObjectList.in

package info (click to toggle)
clhep 2.1.4.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 10,004 kB
  • sloc: cpp: 50,094; sh: 6,694; makefile: 2,691; perl: 28
file content (25 lines) | stat: -rwxr-xr-x 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# get a list of object files
 
# getObjectList [-static|-shared] <subdir list>

filelist=""
for arg in "$@"
do
   if [ "$arg" = "-static" ] 
   then
      extra=""
   elif [ "$arg" = "-shared" ] 
   then
      extra="/shared"
   else
      if [ -d ${arg}/src${extra} ]
      then
	 thispkg=`ls $arg/src$extra/*.@OBJEXT@`
	 filelist="$filelist $thispkg"
      fi
   fi
done

echo $filelist