Open Source implementation of APCO P25
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
op25/scripts/do_sed.sh

12 lines
284 B

#! /bin/bash
srcs=`find lib include -name '*.c' -o -name '*.h' -o -name '*.cc'`
files=`grep -l 'boost.*shared_ptr' $srcs`
dir=`pwd`
for f in $files; do
echo editing file $f in $dir
sed -i 's%boost/shared_ptr.hpp%memory%' $f
sed -i 's%boost::shared_ptr%std::shared_ptr%' $f
done