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