Skip to content

Commit 39078b1

Browse files
committed
add librados2-perl autobuild.sh
1 parent ea8ab34 commit 39078b1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)