Use common .gitignore suffix and gitignore* prefix for most ignores

This commit is contained in:
Ciro Santilli
2018-03-18 10:54:38 +00:00
parent f124af09c4
commit 8233b9249b
5 changed files with 27 additions and 40 deletions

14
build
View File

@@ -3,8 +3,8 @@ set -eu
help_text='
'
arch=x86_64
rm -f br2_cli
touch br2_cli
rm -f br2_cli.gitignore
touch br2_cli.gitignore
configure=true
config_fragments='br2'
extra_make_args=''
@@ -23,7 +23,7 @@ while getopts 'a:b:c:Cgj:IiK:klp:qSv' OPT; do
config_fragments="$config_fragments $OPTARG"
;;
c)
echo "$OPTARG" >> br2_cli
echo "$OPTARG" >> br2_cli.gitignore
;;
C)
configure=false
@@ -36,17 +36,17 @@ while getopts 'a:b:c:Cgj:IiK:klp:qSv' OPT; do
BR2_TARGET_ROOTFS_CPIO=n
BR2_TARGET_ROOTFS_EXT2=n
BR2_TARGET_ROOTFS_INITRAMFS=y
" >> br2_cli
" >> br2_cli.gitignore
;;
i)
echo "
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_EXT2=n
BR2_TARGET_ROOTFS_INITRAMFS=n
" >> br2_cli
" >> br2_cli.gitignore
;;
j)
echo "$OPTARG" >> br2_cli
echo "$OPTARG" >> br2_cli.gitignore
;;
k)
extra_make_args="$extra_make_args kernel_module-reconfigure"
@@ -99,7 +99,7 @@ root_dir="$(pwd)"
buildroot_dir="${root_dir}/buildroot"
out_dir="${buildroot_dir}/output.${arch_dir}~"
config_file="${out_dir}/.config"
config_fragments="$config_fragments br2_cli"
config_fragments="$config_fragments br2_cli.gitignore"
if "$configure"; then
cd "${buildroot_dir}"