Showing posts with label Copy. Show all posts
Showing posts with label Copy. Show all posts

Thursday, April 8, 2010

srcCp




#!/usr/bin/sh


#DIRs="/uvobs"

echo Start searching files with patterns .............

echo "Starting time: `date`"

SROOT="/uvobs/1btsptf/core"

DIRs="$SROOT/rmt_app $SROOT/oam $SROOT/hdr $SROOT/usl"

for dir in $DIRs

do

echo Searching in $dir ...

find $dir \( -name '*.h' -o -name '*.c' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.cc' -o -name '*.lh' \) -type f -exec cp -f --parents {} . \;

echo `date`

done

echo "Ending time: `date`"

echo Creating tarball ...

tar czf uvobs.tgz uvobs

echo Done! uvobs.tgz created.
 
 
 
Tags: source, Copy, bash, patterns

Monday, March 22, 2010

Dev-cpp: stray '\160' in program




The message "stray '\160' in program" when building by Dev-Cpp is occurred when using "Copy and Paste" action.

So, finally, DO NOT copy and paste source code. Please type line by line.


Labels