small-package/diy/Modify.sh

19 lines
726 B
Bash
Raw Normal View History

2021-09-14 00:47:49 +08:00
#!/bin/bash
# --------------------------------------------------------
# Script for creating ACL file for each LuCI APP
2021-09-24 19:46:16 +08:00
sed -i \
2021-09-26 18:09:46 +08:00
-e 's?include \.\./\.\./\(lang\|devel\)?include $(TOPDIR)/feeds/packages/\1?' \
2021-09-24 19:46:16 +08:00
-e "s/\(PKG_HASH\|PKG_MD5SUM\|PKG_MIRROR_HASH\):=.*/\1:=skip/" \
2021-09-24 23:34:37 +08:00
-e 's?2. Clash For OpenWRT?3. Applications?' \
2021-09-24 19:46:16 +08:00
-e 's?\.\./\.\./luci.mk?$(TOPDIR)/feeds/luci/luci.mk?' \
-e 's/ca-certificates/ca-bundle/' \
*/Makefile
2021-10-04 19:52:46 +08:00
sed -i 's?zstd$?zstd ucl upx\n$(curdir)/upx/compile := $(curdir)/ucl/compile?g' tools/Makefile
2021-09-29 15:15:51 +08:00
bash diy/create_acl_for_luci.sh -a >/dev/null 2>&1
bash diy/convert_translation.sh -a >/dev/null 2>&1
rm -rf create_acl_for_luci.err & rm -rf create_acl_for_luci.ok
rm -rf create_acl_for_luci.warn
2021-09-14 00:47:49 +08:00
2021-09-24 19:46:16 +08:00
exit 0