summaryrefslogtreecommitdiff
path: root/scripts/deb
blob: 61992f4d232661eb45b61dd2ae7b0db8307f5158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

ROOT=`mktemp -d --tmp=.`
eval ROOT=$ROOT

echo $ROOT
echo

./scripts/make-tarball
echo -e "\nTarball OK\n"

mv antpm_*.orig.tar.xz $ROOT/

( cd $ROOT;
    mkdir build;
    cd build
    tar --xz -xf ../antpm*.tar.xz
    echo -e "\nStarting to build...\n"
    debuild -us -uc && echo -e "\nBuild OK\ndeb package in '${ROOT}' \n";
)