Debian Codegraph @

scripts/format-all

raw
1 #!/bin/sh
2
3 #
4 # KIM-API: An API for interatomic models
5 # Copyright (c) 2013--2022, Regents of the University of Minnesota.
6 # All rights reserved.
7 #
8 # Contributors:
9 # Ryan S. Elliott
10 #
11 # SPDX-License-Identifier: LGPL-2.1-or-later
12 #
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU Lesser General Public
15 # License as published by the Free Software Foundation; either
16 # version 2.1 of the License, or (at your option) any later version.
17 #
18 # This library is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 # Lesser General Public License for more details.
22 #
23 # You should have received a copy of the GNU Lesser General Public License
24 # along with this library; if not, write to the Free Software Foundation,
25 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #
27
28 #
29 # Release: This file is part of the kim-api.git repository.
30 #
31
32
33 # goto the top level repo directory
34 if THE_GIT_DIR="`git rev-parse --show-toplevel 2> /dev/null`"; then
35 cd "${THE_GIT_DIR}"
36 else
37 printf "Not in the git repo. Exiting...\n"
38 exit 1
39 fi
40
41 ${THE_GIT_DIR}/scripts/clang-format-all
42 ${THE_GIT_DIR}/scripts/fprettify-all