🎉 Initial commit
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# -------------------------------------------------------------------------------------- #
|
||||
# ) ( #
|
||||
# ( /( ( ( ) ( ( ( ( )\ ) ( ( #
|
||||
# )\()) ))\ )( ( ( )\ ) )\))( )\ ( (()/( ( )\))( ( #
|
||||
# ((_)\ /((_|()\ )\ ) )\ '(()/( ((_)()((_) )\ ) ((_)))\((_)()\ )\ #
|
||||
# | |(_|_))( ((_)_(_/( _((_)) )(_)) _(()((_|_)_(_/( _| |((_)(()((_|(_) #
|
||||
# | '_ \ || | '_| ' \)) | ' \()| || | \ V V / | ' \)) _` / _ \ V V (_-< #
|
||||
# |_.__/\_,_|_| |_||_| |_|_|_| \_, | \_/\_/|_|_||_|\__,_\___/\_/\_//__/ #
|
||||
# |__/ #
|
||||
# Copyright (c) 2021 Simon Schneegans #
|
||||
# Released under the GPLv3 or later. See LICENSE file for details. #
|
||||
# -------------------------------------------------------------------------------------- #
|
||||
|
||||
# This script is based on a similar script from the Fly-Pie GNOME Shell extension which is
|
||||
# published under the MIT License (https://github.com/Schneegans/Fly-Pie).
|
||||
|
||||
# Exit the script when one command fails.
|
||||
set -e
|
||||
|
||||
# Go to the repo root.
|
||||
cd "$( cd "$( dirname "$0" )" && pwd )/.." || \
|
||||
{ echo "ERROR: Could not find the repo root."; exit 1; }
|
||||
|
||||
# Execute clang format for all *.js files.
|
||||
find . -type f -name '*.js' -exec sh -c '
|
||||
for file do
|
||||
echo "Formatting $file..."
|
||||
clang-format -i "$file"
|
||||
done
|
||||
' sh {} +
|
||||
Reference in New Issue
Block a user