File indexing completed on 2024-05-12 04:17:32

0001 #!/bin/bash
0002 
0003 # ===========================================================
0004 #
0005 # This file is a part of digiKam project
0006 # https://www.digikam.org
0007 #
0008 # Date:        2011-11-02
0009 # Description: Script to replace tabs by 4 spaces.
0010 #
0011 # Copyright (C) 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0012 #
0013 # SPDX-License-Identifier: BSD-3-Clause
0014 #
0015 # ============================================================
0016 
0017 
0018 find . -name "*.cpp" -o -name "*.h" | xargs -I {} -t bash -c " expand -t 4 {}  > tmp ; cat tmp > {}"
0019 rm -f tmp