From f9a8377fe6bfebf50cd107d3123b9f27fb4e2ecc Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 18 May 2015 16:35:48 +0100 Subject: [PATCH] lib/algorithms/approx/bigfloat.h --- scripts/cleanup | 3 +++ scripts/substitute | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 scripts/cleanup create mode 100755 scripts/substitute diff --git a/scripts/cleanup b/scripts/cleanup new file mode 100755 index 00000000..956a6884 --- /dev/null +++ b/scripts/cleanup @@ -0,0 +1,3 @@ +find . -name "*~" -print -exec rm -f {} \; +find . -name "errs" -print -exec rm -f {} \; +find . -name "log" -print -exec rm -f {} \; diff --git a/scripts/substitute b/scripts/substitute new file mode 100755 index 00000000..3066c4ef --- /dev/null +++ b/scripts/substitute @@ -0,0 +1,6 @@ +#!/bin/bash + +export LANG=C +find . -name "*.cc" -print -exec sed -e "s/${1}/${2}/g" -i .bak {} \; +find . -name "*.h" -print -exec sed -e "s/${1}/${2}/g" -i .bak {} \; +find . -name "*.bak" -exec rm -f {} \;