diff options
author | Tom Rondeau <trondeau@vt.edu> | 2010-12-11 14:24:17 -0500 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2010-12-11 14:24:17 -0500 |
commit | 504a2cce5df490bf9a6b2023cc1df568e51da20a (patch) | |
tree | ff89891a8b4b89bc846775fe33d1463354a62602 /volk/libvector_replace.sh | |
parent | 051aa2f5bc9f2311bb81669eb4326fd906592a1d (diff) | |
parent | 6cd7639e86285c2fc0f3771fd1111c4456d477a4 (diff) |
Merge branch 'volk' into next
Diffstat (limited to 'volk/libvector_replace.sh')
-rwxr-xr-x | volk/libvector_replace.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/volk/libvector_replace.sh b/volk/libvector_replace.sh new file mode 100755 index 0000000000..4c7e33e1b4 --- /dev/null +++ b/volk/libvector_replace.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cd $1 +files=`ls` +for file in $files +do + sed 's/libvector/volk/g' < $file > tempfile + sed 's/LIBVECTOR/VOLK/g' < tempfile > $file +done +for file in $files +do + echo $file > tempfile + newfile=`sed 's/libvector/volk/g' < tempfile` + if (test "$file" != "$newfile"); then + mv $file $newfile + echo "changed $file to $newfile" + fi +done |