summaryrefslogtreecommitdiff
path: root/utils/create-release-deb.sh
blob: cb8746df2233af24ce43d0199b32bc49b021d08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -ei

if [ -z $1 ]; then
	echo usage: $0 VERSION
	exit 1
fi

git clone . dpkg-tmp/tt-rss
cd dpkg-tmp/tt-rss
git checkout $1

debuild -i -us -uc
debuild -i -us -uc -b -aamd64

cd ..

if [! -z "$DEPLOY_DEBS" ]; then
	reprepro -b /var/www/apt include unstable tt-rss*_i386.changes
	reprepro -b /var/www/apt include unstable tt-rss*_amd64.changes
fi

#cd ..
#rm -rf dpkg-tmp