build: incremental update of package
This commit is contained in:
12
.github/workflows/lo-test.yml
vendored
12
.github/workflows/lo-test.yml
vendored
@@ -68,16 +68,18 @@ jobs:
|
|||||||
./scripts/feeds install -a
|
./scripts/feeds install -a
|
||||||
. $GITHUB_WORKSPACE/patches.sh
|
. $GITHUB_WORKSPACE/patches.sh
|
||||||
. $GITHUB_WORKSPACE/merge_packages.sh
|
. $GITHUB_WORKSPACE/merge_packages.sh
|
||||||
rm -rf package/base; mkdir -p package/base; cd ../
|
mkdir -p tmpkg; cd ../
|
||||||
svn export https://github.com/openwrt/packages/trunk packages
|
svn export https://github.com/openwrt/packages/trunk packages
|
||||||
pushd packages
|
pushd packages
|
||||||
ls -d */ | xargs -n1 -i diff -q {} ../lede/feeds/packages/{} | grep Only | grep lede | grep -v -E lang\|devel\|ovn | awk '{print $3 $4}' | tr -d ':' | xargs -n1 -i mv {} ../lede/package/base/
|
ls -d */ | xargs -n1 -i diff -q {} ../lede/feeds/packages/{} | grep Only | grep lede | grep -v -E lang\|devel\|ovn | awk '{print $3 $4}' | tr -d ':' | xargs -n1 -i mv {} ../lede/tmpkg/
|
||||||
sed -i 's/include ..\/..\//include $(TOPDIR)\/feeds\/packages\//' ../lede/package/base/*/Makefile ../lede/feeds/packages/devel/ninja/ninja-cmake.mk
|
sed -i 's/include ..\/..\//include $(TOPDIR)\/feeds\/packages\//' ../lede/tmpkg/*/Makefile ../lede/feeds/packages/devel/ninja/ninja-cmake.mk
|
||||||
popd
|
popd
|
||||||
svn export https://github.com/openwrt/luci/branches/openwrt-18.06 luci
|
svn export https://github.com/openwrt/luci/branches/openwrt-18.06 luci
|
||||||
pushd luci
|
pushd luci
|
||||||
ls -d */ | xargs -n1 -i diff -q {} ../lede/feeds/luci/{} | grep Only | grep lede | grep -E applications\|themes | awk '{print $3 $4}' | tr -d ':' | xargs -n1 -i mv {} ../lede/package/base/
|
ls -d */ | xargs -n1 -i diff -q {} ../lede/feeds/luci/{} | grep Only | grep lede | grep -E applications\|themes | awk '{print $3 $4}' | tr -d ':' | xargs -n1 -i mv {} ../lede/tmpkg/
|
||||||
sed -i 's/include ..\/..\//include $(TOPDIR)\/feeds\/luci\//' ../lede/package/base/luci-*/Makefile
|
sed -i 's/include ..\/..\//include $(TOPDIR)\/feeds\/luci\//' ../lede/tmpkg/luci-*/Makefile
|
||||||
|
popd
|
||||||
|
cd lede; rsync -ach -del --no-t --progress tmpkg/ package/base/; rm tmpkg -rf
|
||||||
|
|
||||||
- name: Custom configure file
|
- name: Custom configure file
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user