blob: 18aea5735504f5409fb1c909758097c7a33c372f (
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
25
26
27
28
|
#!/bin/sh
if [ -e patches/series ] && [ "$(basename ${PWD})" = "debian" ]
then
cd ..
fi
if [ -e debian/patches/series ]
then
for PATCH in $(grep -v '^#' debian/patches/series)
do
echo -n "${PATCH}:"
patch -Np1 -s -i "debian/patches/${PATCH}" --dry-run > /dev/null 2>&1
case "${?}" in
0)
echo " Ok"
;;
*)
echo " Failed"
;;
esac
done
else
echo "package does not have patches"
fi
|