No dangerous and harm, but it's not complete!
Try to build deb packages and handle dependencies automatically.
Because we use Debian-wheezy on a sh4 platform, there is no official binary repository and support, we need to build the packages from source by ourselves, but the dependencies of packages make people crazy, we need a solution to handle it, so I an writing this shell script for a practice.
Package and it's dependencies:
devscripts bash tmux
And you need to be root!
varible REPO in the script is a local apt repo's path
You need to check the path in the script is correct for you.
I will show you my directory structure here:
/root
|----/temp
Building packages here!so the script will be here!
|----/apt-repo/dists/wheezy-sh4/main/binary-sh4
Local apt repo
It's very simple!
start a tmux session and run(you MUST start a tmux session and run this script in it):
./build.sh Package1 Package2 ... Package-N
or you can run this command for build dep only:
./build.sh --build-dep-only Package1 Package2 ... Package-N
I am doing thins on a NextVodBox, but it may works on other platform.