Skip to content
Snippets Groups Projects
Commit 88a80011 authored by Seblu's avatar Seblu
Browse files

update_config.sh: call menuconfig when identical

parent 9be4969d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -e #!/bin/bash -e
[[ -e src/linux/.config ]] || makepkg --nobuild --force config_equal()
{
diff -q -s src/linux/.config config.x86_64
}
(cd src/linux && make oldconfig) if config_equal; then
(cd src/linux && make menuconfig)
else
[[ -e src ]] && rm -r src
makepkg --nobuild --force
(cd src/linux && make oldconfig)
fi
if ! diff -q -s src/linux/.config config.x86_64; then if ! config_equal; then
cp src/linux/.config config.x86_64 cp src/linux/.config config.x86_64
updpkgsums updpkgsums
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment