1
1
function merge_package(){
2
- pn=` echo $1 | rev | cut -d' /' -f 1 | rev`
3
- find package/ -follow -name $pn -not -path " package/custom/*" | xargs -rt rm -rf
4
- if [ ! -z " $2 " ]; then
5
- find package/ -follow -name $2 -not -path " package/custom/*" | xargs -rt rm -rf
6
- fi
7
-
8
- if [[ $1 == * ' /trunk/' * || $1 == * ' /branches/' * ]]; then
9
- svn export $1
10
- elif [[ $1 == * ' /tree/' * ]]; then
11
- repo=` echo $1 | awk -F' /tree/' ' {print $1}' `
12
- git clone --depth=1 --single-branch $repo .tmprepo
13
- mv .tmprepo/$pn $pn
14
- rm .tmprepo -rf
15
- else
16
- git clone --depth=1 --single-branch $3 $1
17
- rm -rf $pn /.git
18
- fi
19
- mv $pn package/custom/
2
+ repo=` echo $1 | rev | cut -d' /' -f 1 | rev`
3
+ find package/ -follow -name $3 -not -path " package/custom/*" | xargs -rt rm -rf
4
+ git clone --depth=1 --single-branch $1
5
+ mv $2 $3
6
+ rm -rf $repo
7
+ mv $3 package/custom/
20
8
}
21
9
function drop_package(){
22
10
find package/ -follow -name $1 -not -path " package/custom/*" | xargs -rt rm -rf
@@ -36,21 +24,21 @@ merge_feed nas "https://github.com/linkease/nas-packages;master"
36
24
merge_feed nas_luci " https://github.com/linkease/nas-packages-luci;main"
37
25
rm -r package/feeds/nas_luci/luci-app-ddnsto
38
26
merge_feed helloworld " https://github.com/stupidloud/helloworld;tmp"
39
- merge_package https://github.com/ilxp/luci-app-ikoolproxy
40
- merge_package https://github.com/sundaqiang/openwrt-packages/trunk/ luci-app-wolplus
41
- merge_package https://github.com/messense/aliyundrive-webdav/trunk/ openwrt/aliyundrive-webdav
42
- merge_package https://github.com/messense/aliyundrive-webdav/trunk/ openwrt/luci-app-aliyundrive-webdav
43
- merge_package " -b 18.06 https://github.com/jerrykuku/luci-theme-argon"
44
- merge_package https://github.com/vernesong/OpenClash/trunk/ luci-app-openclash
45
- merge_package https://github.com/NateLol/luci-app-oled
46
- merge_package https://github.com/xiaorouji/openwrt-passwall-packages/tree/main/ brook
47
- merge_package https://github.com/xiaorouji/openwrt-passwall-packages/tree/main/ chinadns-ng
48
- merge_package https://github.com/xiaorouji/openwrt-passwall-packages/tree/main/ trojan-go
49
- merge_package https://github.com/xiaorouji/openwrt-passwall-packages/tree/main/ trojan-plus
50
- merge_package https://github.com/xiaorouji/openwrt-passwall-packages/tree/main/ sing-box
51
- merge_package " -b main https://github.com/xiaorouji/openwrt-passwall"
52
- merge_package https://github.com/jerrykuku/lua-maxminddb
53
- merge_package https://github.com/kongfl888/luci-app-adguardhome
27
+ merge_package https://github.com/ilxp/luci-app-ikoolproxy luci-app-ikoolproxy luci-app-ikoolproxy
28
+ merge_package https://github.com/sundaqiang/openwrt-packages openwrt-packages/luci-app-wolplus luci-app-wolplus
29
+ merge_package https://github.com/messense/aliyundrive-webdav aliyundrive-webdav/ openwrt/aliyundrive-webdav aliyundrive-webdav
30
+ merge_package https://github.com/messense/aliyundrive-webdav aliyundrive-webdav/ openwrt/luci-app-aliyundrive-webdav luci-app-aliyundrive-webdav
31
+ merge_package " -b 18.06 https://github.com/jerrykuku/luci-theme-argon" luci-theme-argon luci-theme-argon
32
+ merge_package https://github.com/vernesong/OpenClash OpenClash/luci-app-openclash luci-app-openclash
33
+ merge_package https://github.com/NateLol/luci-app-oled NateLol/luci-app-oled luci-app-oled
34
+ merge_package https://github.com/xiaorouji/openwrt-passwall-packages openwrt-passwall-packages/brook brook
35
+ merge_package https://github.com/xiaorouji/openwrt-passwall-packages openwrt-passwall-packages/chinadns-ng chinadns-ng
36
+ merge_package https://github.com/xiaorouji/openwrt-passwall-packages openwrt-passwall-packages/trojan-go trojan-go
37
+ merge_package https://github.com/xiaorouji/openwrt-passwall-packages openwrt-passwall-packages/trojan-plus trojan-plus
38
+ merge_package https://github.com/xiaorouji/openwrt-passwall-packages openwrt-passwall-packages/sing-box sing-box
39
+ merge_package " -b main https://github.com/xiaorouji/openwrt-passwall" openwrt-passwall openwrt-passwall
40
+ merge_package https://github.com/jerrykuku/lua-maxminddb lua-maxminddb lua-maxminddb
41
+ merge_package https://github.com/kongfl888/luci-app-adguardhome luci-app-adguardhome luci-app-adguardhome
54
42
drop_package luci-app-cd8021x
55
43
drop_package luci-app-cifs
56
44
drop_package verysync
0 commit comments