1
0
Fork 0

Fix indentation

This commit is contained in:
Braiden Vasco 2017-07-02 18:56:02 +00:00
parent cdd5e49aea
commit 61ef7b1956

View file

@ -111,48 +111,48 @@ run_sub_stage() {
}
task_patches() {
if [ -d ${i}-patches ]; then
log_begin "$SUB_STAGE_DIR/$i-patches"
pushd ${STAGE_WORK_DIR} > /dev/null
if [ -d ${i}-patches ]; then
log_begin "$SUB_STAGE_DIR/$i-patches"
pushd ${STAGE_WORK_DIR} > /dev/null
rm -rf .pc
rm -rf *-pc
rm -rf .pc
rm -rf *-pc
QUILT_PATCHES=${SUB_STAGE_DIR}/${i}-patches
SUB_STAGE_QUILT_PATCH_DIR="$(basename $SUB_STAGE_DIR)-pc"
QUILT_PATCHES=${SUB_STAGE_DIR}/${i}-patches
SUB_STAGE_QUILT_PATCH_DIR="$(basename $SUB_STAGE_DIR)-pc"
mkdir -p $SUB_STAGE_QUILT_PATCH_DIR
ln -snf $SUB_STAGE_QUILT_PATCH_DIR .pc
mkdir -p $SUB_STAGE_QUILT_PATCH_DIR
ln -snf $SUB_STAGE_QUILT_PATCH_DIR .pc
if [ -e ${SUB_STAGE_DIR}/${i}-patches/EDIT ]; then
tput setaf 3 # Yellow color
echo 'Dropping into bash to edit patches...'
echo 'Tutorial: https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/'
echo 'Example:'
echo ' quilt new XX-name-of-the-patch.diff'
echo ' quilt edit rootfs/path/to/file'
echo ' quilt diff'
echo ' quilt refresh'
tput sgr0 # No color
if [ -e ${SUB_STAGE_DIR}/${i}-patches/EDIT ]; then
tput setaf 3 # Yellow color
echo 'Dropping into bash to edit patches...'
echo 'Tutorial: https://raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/'
echo 'Example:'
echo ' quilt new XX-name-of-the-patch.diff'
echo ' quilt edit rootfs/path/to/file'
echo ' quilt diff'
echo ' quilt refresh'
tput sgr0 # No color
bash
fi
bash
fi
quilt upgrade
RC=0
quilt push -a || RC=$?
quilt upgrade
RC=0
quilt push -a || RC=$?
case "$RC" in
0|2)
;;
*)
false
;;
esac
case "$RC" in
0|2)
;;
*)
false
;;
esac
popd > /dev/null
log_end "$SUB_STAGE_DIR/$i-patches"
fi
popd > /dev/null
log_end "$SUB_STAGE_DIR/$i-patches"
fi
}
task_debconf() {