Allow to run release scripts on top-level dir

This commit is contained in:
Martchus 2018-12-29 21:15:01 +01:00
parent 0184e4b91d
commit 277e57c21b
4 changed files with 6 additions and 6 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash
set -e # abort on first error
shopt -s nullglob
source versions.sh
source "$(dirname $0)/versions.sh"
for pkgbuild_file in "${PKGBUILD_DIR:-..}"/*/*/PKGBUILD; do
trimmed_path=${pkgbuild_file#${PKGBUILD_DIR:-..}/}
for pkgbuild_file in "${PKGBUILD_DIR:-.}"/*/*/PKGBUILD; do
trimmed_path=${pkgbuild_file#${PKGBUILD_DIR:-.}/}
project_name=${trimmed_path%%/*}
variant=${trimmed_path%/PKGBUILD}
variant=${variant#$project_name/}

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e # abort on first error
shopt -s nullglob
source ../versions.sh
source "$(dirname $0)/../versions.sh"
for spec_file in "$OSC_DIR"/*/*/*.spec; do
trimmed_path=${spec_file#$OSC_DIR/*/*/}

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e # abort on first error
shopt -s nullglob
source ../versions.sh
source "$(dirname $0)/../versions.sh"
if ! [[ $GITHUB_TOKEN ]]; then
echo "Don't forget to set \$GITHUB_TOKEN."

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e # abort on first error
shopt -s nullglob
source ../versions.sh
source "$(dirname $0)/../versions.sh"
repo_dir=${PATH_REPO_OWNSTUFF}
if ! [[ $repo_dir ]]; then