Skip to content

Commit 6690f9f

Browse files
committed
add qemu-server autobuild.sh
1 parent daff44a commit 6690f9f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎packages/qemu-server/autobuild.sh‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
PKGNAME="qemu-server"
3+
4+
errlog(){
5+
echo $1
6+
exit 1
7+
8+
}
9+
10+
exec_build(){
11+
apt update
12+
yes |mk-build-deps --install --remove
13+
echo "clean "
14+
make clean || echo ok
15+
echo "build deb in `pwd` "
16+
DEB_BUILD_OPTIONS=nocheck make deb
17+
}
18+
19+
echo "This is $PKGNAME build scripts"
20+
21+
22+
SH_PATH=$(realpath "$0")
23+
SH_DIR=$(dirname $SH_PATH)
24+
25+
cd $SH_DIR/$PKGNAME
26+
exec_build

0 commit comments

Comments
 (0)