mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
fix: change directory to repository top level
This commit is contained in:
parent
5d6a50c286
commit
95a184d1a9
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
for tool in "${@}"; do
|
for tool in "${@}"; do
|
||||||
|
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh mdl
|
./scripts/requires-program.sh mdl
|
||||||
|
|
||||||
|
@ -9,7 +9,9 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
now="$(date +%s)"
|
now="$(date +%s)"
|
||||||
fail="0"
|
fail="0"
|
||||||
find_tool="$(./scripts/best-program.sh fd fdfind find)"
|
find_tool="$(./scripts/best-program.sh fd fdfind find)"
|
||||||
|
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh pylint
|
./scripts/requires-program.sh pylint
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
template=".qubesbuilder.template"
|
template=".qubesbuilder.template"
|
||||||
|
@ -9,6 +9,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
./scripts/qubesbuilder-gen.sh
|
./scripts/qubesbuilder-gen.sh
|
||||||
|
@ -15,6 +15,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
find_tool="$(./scripts/best-program.sh fd fdfind find)"
|
find_tool="$(./scripts/best-program.sh fd fdfind find)"
|
||||||
|
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh salt-lint
|
./scripts/requires-program.sh salt-lint
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh shellcheck file
|
./scripts/requires-program.sh shellcheck file
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ esac
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh dnf rpmlint rpmbuild rpmsign
|
./scripts/requires-program.sh dnf rpmlint rpmbuild rpmsign
|
||||||
build_dir="${HOME}/rpmbuild"
|
build_dir="${HOME}/rpmbuild"
|
||||||
|
@ -149,6 +149,7 @@ esac
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
spec_get="./scripts/spec-get.sh"
|
spec_get="./scripts/spec-get.sh"
|
||||||
|
@ -67,6 +67,7 @@ fi
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh reuse
|
./scripts/requires-program.sh reuse
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh codespell
|
./scripts/requires-program.sh codespell
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
|
|
||||||
files=""
|
files=""
|
||||||
|
@ -10,6 +10,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh yamllint
|
./scripts/requires-program.sh yamllint
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ set -eu
|
|||||||
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
command -v git >/dev/null || { echo "Missing program: git" >&2; exit 1; }
|
||||||
repo_toplevel="$(git rev-parse --show-toplevel)"
|
repo_toplevel="$(git rev-parse --show-toplevel)"
|
||||||
test -d "${repo_toplevel}" || exit 1
|
test -d "${repo_toplevel}" || exit 1
|
||||||
|
cd "${repo_toplevel}"
|
||||||
unset repo_toplevel
|
unset repo_toplevel
|
||||||
./scripts/requires-program.sh createrepo_c gpg
|
./scripts/requires-program.sh createrepo_c gpg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user