Newer
Older
#!/bin/bash -e
. version.sh
DIR="$PWD"
run () {
if [ -d ${DIR}/${suite} ] ; then
rm -rf ${DIR}/${suite}/
fi
mkdir -p ${DIR}/${suite}/
if [ ! -d ${DIR}/common/ ] ; then
if [ ! "x${package_source}" = "x" ] ; then
cp -v ${DIR}/${package_source} ${DIR}/${suite}
fi
if [ ! "x${debian_patch}" = "x" ] ; then
cp -v ${debian_patch} ${DIR}/${suite}
fi
cd ${DIR}/${suite}
if [ ! "x${package_source}" = "x" ] ; then
if [ ! "x${src_dir}" = "x" ] ; then
tar xf ${DIR}/${package_source} -C ${DIR}/${suite}/
cd ${DIR}/${suite}/${src_dir}
ls
if [ ! "x${debian_patch}" = "x" ] ; then
zcat ${DIR}/${debian_patch} | patch -p1
fi
if [ ! "x${debian_untar}" = "x" ] ; then
tar xfv ${DIR}/${debian_untar} -C ${DIR}/${suite}/${src_dir}
fi
else
mkdir -p ${DIR}/${suite}/${package_name}_${package_version}
tar xf ${DIR}/${package_source} -C ${DIR}/${suite}/${package_name}_${package_version}
cd ${DIR}/${suite}/${package_name}_${package_version}
ls
if [ ! "x${debian_patch}" = "x" ] ; then
zcat ${DIR}/${debian_patch} | patch -p1
fi
if [ ! "x${debian_untar}" = "x" ] ; then
tar xfv ${DIR}/${debian_untar} -C ${DIR}/${suite}/${package_name}_${package_version}
mkdir -p ${DIR}/${suite}/${package_name}_${package_version}
cd ${DIR}/${suite}/${package_name}_${package_version}
mkdir -p ${DIR}/${suite}/${package_name}_${package_version}
cd ${DIR}/${suite}/${package_name}_${package_version}
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
fi
if [ ! -d ./debian ] ; then
mkdir ./debian
fi
if [ -d ${DIR}/suite/${suite}/ ] ; then
cp -rv ${DIR}/suite/${suite}/* ./
fi
if [ ! "x${debian_dl_1}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_1}
cd ../
fi
if [ ! "x${debian_dl_2}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_2}
cd ../
fi
if [ ! "x${debian_dl_3}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_3}
cd ../
fi
if [ ! "x${debian_dl_4}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_4}
cd ../
fi
if [ ! "x${debian_dl_5}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_5}
cd ../
fi
if [ ! "x${debian_dl_6}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_6}
cd ../
fi
if [ ! "x${debian_dl_7}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_7}
cd ../
fi
if [ ! "x${debian_dl_8}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_8}
cd ../
fi
if [ ! "x${debian_dl_9}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_9}
cd ../
fi
if [ ! "x${debian_dl_10}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_10}
cd ../
fi
if [ ! "x${debian_dl_11}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_11}
cd ../
fi
if [ ! "x${debian_dl_12}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_12}
cd ../
fi
if [ ! "x${debian_dl_13}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_13}
cd ../
fi
if [ ! "x${debian_dl_14}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_14}
cd ../
fi
if [ ! "x${debian_dl_15}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_15}
cd ../
fi
if [ ! "x${debian_dl_16}" = "x" ] ; then
cd ./debian/
wget -c ${debian_dl_16}
cd ../
fi
if [ -d ${DIR}/common/ ] ; then
mkdir -p ./debian/common/
cp -rv ${DIR}/common/* ./debian/common/
fi
if [ -d ${DIR}/override/ ] ; then
cp -rv ${DIR}/override/* ./
fi
if [ -d ${DIR}/debian/ ] ; then
cp -rv ${DIR}/debian/* ./debian/
fi
#debuild -us -uc -S -d
debuild --no-lintian -i -us -uc -S -d
cd ${DIR}/
}
runner () {
if [ -d ./suite/${suite}/ ] ; then
run
fi
}
start_run () {
dist="debian"