7bb581d062ee7c6e4fb2f70888120ba1e7dabf10
[librewrt/.git] / branding / bright-ben / patch.sh
1 #!/bin/sh
2 # LibreWRT Rebranding Script
3 # Copyright (C) 2010 Jason Self <jason@librewrt.org>
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18 svn co -r 23587 svn://svn.openwrt.org/openwrt/trunk
19 patch -p0 -i bright-ben.patch
20 mv docs/openwrt.sty docs/librewrt.sty
21 mv docs/openwrt.tex docs/librewrt.tex
22 # Clean target directory
23 find target/linux \( ! -path "target/linux/ar71xx/*"  ! -path "target/linux/generic/*" ! -path "target/linux/uml/*" ! -path "target/linux/x86/*" ! -path "target/linux/xburst/*" ! -path "target/linux/Makefile" \) -delete
24 rm target/linux/ar71xx/generic/profiles/02-madwifi.mk
25 # Clean package directory
26 find package \( ! -path "package/base-files/*" ! -path "package/busybox/*" ! -path "package/dnsmasq/*" ! -path "package/dropbear/*" ! -path "package/firewall/*" ! -path "package/grub/*" ! -path "package/hotplug2/*" ! -path "package/iptables/*" ! -path "package/kernel/*" ! -path "package/libpcap/*" ! -path "package/libreadline/*" ! -path "package/libtool/*" ! -path "package/linux-atm/*" ! -path "package/lua/*" ! -path "package/ncurses/*" ! -path "package/ocf-crypto-headers/*" ! -path "package/mtd/*" ! -path "package/openssl/*" ! -path "package/opkg/*" ! -path "package/ppp/*" ! -path "package/pptp/*" ! -path "package/uci/*" ! -path "package/udevtrigger/*" ! -path "package/zlib/*" ! -path "package/Makefile" \) -delete
27 # Clean firmware-utils directory
28 find tools/firmware-utils \( ! -path "tools/firmware-utils/src/sha1.h" ! -path "tools/firmware-utils/src/sha1.c" ! -path "tools/firmware-utils/src/mkplanexfw.c" ! -path "tools/firmware-utils/Makefile" \) -delete
29 # Clean scripts directory
30 rm scripts/slugimage.pl
31 # Clean tools directory
32 rm -fr tools/upslug2
33 rm -fr tools/wrt350nv2-builder
34 #create card dir as part of base-files
35 mkdir package/base-files/files/card
36