aboutsummaryrefslogtreecommitdiff
path: root/externals/build/src/search-doubled-externals.sh
blob: f0b6f361a959b611ce4cc15db4d10680c085dd93 (plain)
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
26
27
#!/bin/sh
#
# run this script to see doubled externals in the
# libdir and flatspace format
#
# these files can be removed from the flatspace
#
# (Georg Holzmann)

# all files
FILES=`ls *.c | sed s/"\.c"/"\.p\*"/g`

# search dir
# (should point to the directory where you build pd-extended)
SEARCH_PATH=../lib/pd/extra

for FILE in $FILES
do

  # this will also display the path (for debugging):
  #find $SEARCH_PATH -name $FILE

  # this will display the files, which can be deleted:
  find $SEARCH_PATH -name $FILE | sed -e s/"\.\."/""/g -e s/"\/.*\/"/""/g -e s/"\.pd_linux"/"\.c"/g

done