mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
This prevents error: dpkg-source: error: expected [ +-] at start of line 16 of diff 'dropbear/debian/patches/0001-Enable-PAM-support.patch' dpkg-source: info: applying 0001-Enable-PAM-support.patch dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
23 lines
429 B
Bash
Executable File
23 lines
429 B
Bash
Executable File
#!/bin/sh
|
|
CWD=$(pwd)
|
|
set -e
|
|
|
|
SRC=dropbear
|
|
if [ ! -d ${SRC} ]; then
|
|
echo "Source directory does not exists, please 'git clone'"
|
|
exit 1
|
|
fi
|
|
|
|
cd ${SRC}
|
|
PATCH_DIR=${CWD}/patches
|
|
if [ -d $PATCH_DIR ]; then
|
|
for patch in $(ls ${PATCH_DIR})
|
|
do
|
|
echo "I: Apply patch: ${patch} to main repository"
|
|
patch -p1 < ${PATCH_DIR}/${patch}
|
|
done
|
|
fi
|
|
|
|
echo "I: Build Debian Package"
|
|
dpkg-buildpackage -uc -us -tc -b
|