improving this a little bit so it can be used someday.
[feisty_meow.git] / scripts / buildor / buildor_strip_code.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/build/seek_all_source.sh"
4
5 function strip_file {
6   file="$1"
7   perl $FEISTY_MEOW_SCRIPTS/text/strip_cr.pl "$file"
8 }
9
10 #echo tempfile is $SOURCES_FOUND_LIST
11
12 # this block has io redirected from the file to stdin so we can scan the
13 # file's contents without affecting stdio elsewhere.
14 while true; do
15   read line_found 
16   if [ $? != 0 ]; then break; fi
17 #echo line found=$line_found
18   strip_file "$line_found"
19 done <"$SOURCES_FOUND_LIST"
20
21 #echo the source temp is $SOURCES_FOUND_LIST
22
23 # clean up.
24 rm "$SOURCES_FOUND_LIST"
25