No chequear diferencias en la repo
pkgver o pkgrel deberían cambiar en cada cambio así que ese es chequeo suficiente
This commit is contained in:
parent
454b329c1d
commit
6c7675bc2a
1 changed files with 9 additions and 16 deletions
11
thing.sh
11
thing.sh
|
@ -7,18 +7,14 @@ fi
|
||||||
cd aports
|
cd aports
|
||||||
aports_dir="$(pwd)"
|
aports_dir="$(pwd)"
|
||||||
|
|
||||||
|
git fetch
|
||||||
git checkout --force "$branch"
|
git checkout --force "$branch"
|
||||||
git reset --hard "$branch"
|
git reset --hard "$branch"
|
||||||
git fetch
|
git merge "origin/$branch"
|
||||||
|
|
||||||
for package in $(cat ../packages); do
|
for package in $(cat ../packages); do
|
||||||
cd "$aports_dir"
|
cd "$aports_dir"
|
||||||
|
|
||||||
echo "[$0] [$package] Checking changes"
|
|
||||||
if git diff --stat "origin/$branch" "$package" | grep -F "$package"; then
|
|
||||||
echo "[$0] [$package] Detected changes, building..."
|
|
||||||
else
|
|
||||||
echo "[$0] [$package] No changes."
|
|
||||||
. "$package/APKBUILD"
|
. "$package/APKBUILD"
|
||||||
repo=${package%/*}
|
repo=${package%/*}
|
||||||
package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
|
package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
|
||||||
|
@ -28,7 +24,6 @@ for package in $(cat ../packages); do
|
||||||
else
|
else
|
||||||
echo "[$0] [$package] Package not built yet, building..."
|
echo "[$0] [$package] Package not built yet, building..."
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
echo "[$0] [$package] Patching APKBUILD to add $package-dbg..."
|
echo "[$0] [$package] Patching APKBUILD to add $package-dbg..."
|
||||||
sed -i 's/subpackages="/subpackages="$pkgname-dbg /' "$package/APKBUILD"
|
sed -i 's/subpackages="/subpackages="$pkgname-dbg /' "$package/APKBUILD"
|
||||||
|
@ -39,5 +34,3 @@ for package in $(cat ../packages); do
|
||||||
echo "[$0] [$package] !! FAILED TO BUILD !!"
|
echo "[$0] [$package] !! FAILED TO BUILD !!"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
git merge "origin/$branch"
|
|
||||||
|
|
Loading…
Reference in a new issue