forked from splintermind/Dwarf-Therapist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_packages
38 lines (29 loc) · 1017 Bytes
/
build_packages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#Build source descriptor
debuild -us -uc -S
#Other dists in pbuilder
for dist in "lucid" "maverick" "sid" "lenny"
do
#32-bit
sudo rm -rf ~/pbuilder/${dist}-i386_result/*
sudo pbuilder-dist $dist i386 build ../*.dsc
mkdir -p ../packages/dists
mkdir -p ../packages/dists/$dist
mkdir -p ../packages/dists/$dist/universe
mkdir -p ../packages/dists/$dist/universe/binary-i386
sudo rm -f ../packages/dists/$dist/universe/binary-i386/*
cp ~/pbuilder/${dist}-i386_result/dwarftherapist*.deb ../packages/dists/$dist/universe/binary-i386
#64-bit
sudo rm -rf ~/pbuilder/${dist}_result/*
sudo pbuilder-dist $dist build ../*.dsc
mkdir -p ../packages/dists
mkdir -p ../packages/dists/$dist
mkdir -p ../packages/dists/$dist/universe
mkdir -p ../packages/dists/$dist/universe/binary-amd64
sudo rm -f ../packages/dists/$dist/universe/binary-amd64/*
cp ~/pbuilder/${dist}_result/dwarftherapist*.deb ../packages/dists/$dist/universe/binary-amd64
done
# Build repository
pushd ..
./build_repo
popd