4
Fork 0
CronosAgent/OpenWRT/build.sh

19 lines
No EOL
338 B
Bash
Executable file

#!/bin/bash
PACKAGE=cronosagent
PROJECT=$(pwd)/..
OPENWRT=${HOME}/openwrt
rm -rf $OPENWRT/package/$PACKAGE
mkdir -p $OPENWRT/package/$PACKAGE/source
cp -R $PROJECT $OPENWRT/package/$PACKAGE/source
rm $OPENWRT/package/$PACKAGE/source/OpenWRT/package/Makefile
rm -rf $OPENWRT/package/$PACKAGE/source/.git
pushd .
cd $OPENWRT
make
popd