Skip to content
update_config.sh 309 B
Newer Older
Seblu's avatar
Seblu committed
#!/bin/bash -e
config_equal()
{
	diff -q -s src/linux/.config config.x86_64
}
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 ! config_equal; then
Seblu's avatar
Seblu committed
	cp src/linux/.config config.x86_64
	updpkgsums
fi