Skip to content
update_config.sh 322 B
Newer Older
Seblu's avatar
Seblu committed
#!/bin/bash -e
config_equal()
{
Seblu's avatar
Seblu committed
	diff -q -s src/linux/.config config.x86_64 &>/dev/null
if config_equal; then
	(cd src/linux && make menuconfig)
else
Seblu's avatar
Seblu committed
	[[ -e src ]] && rm -rf src
	makepkg --nobuild --force
	(cd src/linux && make oldconfig)
fi
if ! config_equal; then
Seblu's avatar
Seblu committed
	cp src/linux/.config config.x86_64
	updpkgsums
fi