summaryrefslogtreecommitdiff
path: root/volk/libvector_replace.sh
blob: e1940c00f3476426bed9d32225a31e1d112a1ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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