mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00

Having a standardized image allows uniform application of format and lint checking across multiple host platforms. This ensures all contributors and disparate CI systems to play by a common set of basic rules. It also makes it easier to maintain the common rules over-time. Signed-off-by: Chris Evich <cevich@redhat.com>
16 lines
535 B
Bash
Executable File
16 lines
535 B
Bash
Executable File
#!/bin/bash
|
|
|
|
[[ -n "$SRCPATH" ]] || \
|
|
( echo "ERROR: \$SRCPATH must be non-empty" && exit 1 )
|
|
[[ -n "$GOSRC" ]] || \
|
|
( echo "ERROR: \$GOSRC must be non-empty" && exit 2 )
|
|
[[ -r "${SRCPATH}/contrib/gate/Dockerfile" ]] || \
|
|
( echo "ERROR: Expecting libpod repository root at $SRCPATH" && exit 3 )
|
|
|
|
# Working from a copy avoids needing to perturb the actual source files
|
|
mkdir -p "$GOSRC"
|
|
/usr/bin/rsync --recursive --links --quiet --safe-links \
|
|
--perms --times "${SRCPATH}/" "${GOSRC}/"
|
|
cd "$GOSRC"
|
|
make "$@"
|