sanitize_all.sh revision 15a44745412679c30a6d022733925af70a38b715
bf555703f27295798de30fa8c04d727410788f66Bob Halley#!/bin/sh
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 2000 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# purpose with or without fee is hereby granted, provided that the above
bf555703f27295798de30fa8c04d727410788f66Bob Halley# copyright notice and this permission notice appear in all copies.
bf555703f27295798de30fa8c04d727410788f66Bob Halley#
4be63b1fd8c18dbeca1648d6cf22fa14f057a469David Lawrence# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
4be63b1fd8c18dbeca1648d6cf22fa14f057a469David Lawrence# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
4be63b1fd8c18dbeca1648d6cf22fa14f057a469David Lawrence# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
76e9eb5ba63abbb07afbf172f92e1a4f3a566f7bAndreas Gustafsson# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
bf555703f27295798de30fa8c04d727410788f66Bob Halley# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews# $Id: sanitize_all.sh,v 1.2 2000/07/27 09:55:00 tale Exp $
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews# Run this shell script from a CVS export'ed source tree, and it will
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews# sanitize all of the files in that tree.
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews
bf555703f27295798de30fa8c04d727410788f66Bob Halleyfind . -name '*.[ch]' | xargs perl util/sanitize.pl $*
bf555703f27295798de30fa8c04d727410788f66Bob Halleyfind . -name '*.in' | xargs perl util/sanitize.pl $*
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrewsfor file in `find . -name '*.dirty'`
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrewsdo
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews perl util/sanitize.pl - < $file > ${file/.dirty/}
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews rm $file
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrewsdone
bf555703f27295798de30fa8c04d727410788f66Bob Halley
b186f1ab91faf6d46d102ecbfd55cbdb7e24feeeMark Andrews