generated from general-packages/pika-pkg-template
Update main.sh
This commit is contained in:
parent
121f47941b
commit
82400ffb74
21
main.sh
21
main.sh
@ -30,16 +30,19 @@ cd $(find ./ -maxdepth 1 -name "$PIKA_PACKAGE_NAME*" -type d | head -1)
|
|||||||
# DO PATCHING
|
# DO PATCHING
|
||||||
if git clone --depth=1 https://git.pika-os.com/upstream-patches/"$PIKA_PACKAGE_NAME".git ../patches
|
if git clone --depth=1 https://git.pika-os.com/upstream-patches/"$PIKA_PACKAGE_NAME".git ../patches
|
||||||
then
|
then
|
||||||
if cat ./debian/source/format | grep 'quilt'
|
if [ -f ../series ]
|
||||||
then
|
then
|
||||||
cp -rvf ../patches/patches ./debian/
|
if cat ./debian/source/format | grep 'quilt'
|
||||||
cat ../series >> ./debian/patches/series
|
then
|
||||||
else
|
cp -rvf ../patches/patches ./debian/
|
||||||
for i in $(cat ../series)
|
cat ../series >> ./debian/patches/series
|
||||||
do
|
else
|
||||||
echo "Applying Patch: $i"
|
for i in $(cat ../series)
|
||||||
patch -Np1 -i ../patches/patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"
|
do
|
||||||
done
|
echo "Applying Patch: $i"
|
||||||
|
patch -Np1 -i ../patches/patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"
|
||||||
|
done
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f ../native-series ]
|
if [ -f ../native-series ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user