#!/bin/dash SOURCE_DIR=src BUSYBOX_VERSION=1.36.1 OUT_DIRECTORY=out #prepare _PWD=`pwd` echo "Unarchive busbox" cd $SOURCE_DIR tar -xvf busybox-$BUSYBOX_VERSION.tar.bz2 cd busybox-$BUSYBOX_VERSION cp ../../config/busybox.config ./.config make -j4 #save result echo "Copy result to out" cp ./busybox ../../$OUT_DIRECTORY