git-svn-id: http://svn.librewrt.org/librewrt@95 d459f2a8-9e7c-4474-95e1-7f88c49cc8e2
[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 mv trunk/* .
20 rm -fr trunk
21 patch -p0 -i bright-ben.patch
22 mv docs/openwrt.sty docs/librewrt.sty
23 mv docs/openwrt.tex docs/librewrt.tex
24 # Clean target directory
25 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
26 rm target/linux/ar71xx/generic/profiles/02-madwifi.mk
27 # Clean package directory
28 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
29 # Clean firmware-utils directory
30 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
31 # Clean scripts directory
32 rm scripts/slugimage.pl
33 # Clean tools directory
34 rm -fr tools/upslug2
35 rm -fr tools/wrt350nv2-builder
36 #create card dir as part of base-files
37 mkdir package/base-files/files/card
38