forked from EFForg/OpenWireless
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsendToBuild
More file actions
executable file
·32 lines (22 loc) · 809 Bytes
/
sendToBuild
File metadata and controls
executable file
·32 lines (22 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash -e
cd $(dirname $0)
echo "remove openwrt/files directory in build ..."
rm -rf openwrt/files
echo "create openwrt/files directory in build"
mkdir -p openwrt/files
echo "change DISTRIB_RELEASE_DATE in openwrt_release ..."
./changeReleaseDate
echo "push etc to build"
cp -rp etc openwrt/files/
echo "push lib to build"
cp -rp lib openwrt/files/
echo "make www directory in build..."
mkdir openwrt/files/www
echo "pushing frontend to build..."
cp -rp app/* openwrt/files/www/
echo "make cgi-bin directory in build..."
mkdir openwrt/files/www/cgi-bin
echo "pushing routerapi to build..."
cp -rp routerapi openwrt/files/www/cgi-bin/
echo "building lighttpd config..."
cat lighttpd/router.properties | scripts/template lighttpd/lighttpd.conf.template > openwrt/files/etc/lighttpd/lighttpd.conf