mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
Update upstream.yml
This commit is contained in:
1 parent
b34ca04ff5
commit
731dda965b
1 file changed
+6
-3
@@ -559,13 +559,16 @@ jobs:
|
||||
|
||||
(
|
||||
for pkg in $(ls -d */ | grep -v "naiveproxy" | grep -v "luci-app-store" | grep -v "luci-app-quickstart"); do
|
||||
if [[ $pkg == luci-* ]]; then
|
||||
sed -i '/^[[:space:]]*PKG_\(VERSION\|RELEASE\):*=/d' $pkg/Makefile || true
|
||||
else
|
||||
if [[ "$(grep "PKG_VERSION" $pkg/Makefile)" && ! "$(grep "PKG_RELEASE" $pkg/Makefile)" ]]; then
|
||||
sed -i "s/\(PKG_VERSION:=.*\)/\1\nPKG_RELEASE:=/" $pkg/Makefile || true
|
||||
sed -i "s/\(PKG_VERSION:=.*\)/\1\nPKG_RELEASE:=/" $pkg/Makefile || true
|
||||
fi
|
||||
if [ "$(grep "PKG_RELEASE" $pkg/Makefile)" ]; then
|
||||
sed -i "s/PKG_RELEASE:=.*/PKG_RELEASE:=$(git rev-list --count main $pkg)/" $pkg/Makefile || true
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
done
|
||||
touch /tmp/ok2
|
||||
) &
|
||||
|
||||
Reference in new issue
Block a user