mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
Add linting for shell scripts
This changes tidy to check shell scripts for the proper shebang and options. It does not check that variables are formatted correctly. It also adds a check for the MPL 2.0 license in shell scripts.
This commit is contained in:
parent
1e0321f7dd
commit
7952bd00b6
10 changed files with 104 additions and 13 deletions
|
@ -1,3 +1,15 @@
|
|||
#!/bin/bash
|
||||
TARGET_DIR=$OUT_DIR/../../..
|
||||
arm-linux-androideabi-gcc $@ $LDFLAGS -lc -o $TARGET_DIR/libservo.so -shared && touch $TARGET_DIR/servo
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
TARGET_DIR="${OUT_DIR}/../../.."
|
||||
arm-linux-androideabi-gcc "$@" \
|
||||
"${LDFLAGS-}" -lc -shared \
|
||||
-o "${TARGET_DIR}/libservo.so"
|
||||
touch "${TARGET_DIR}/servo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue