diff options
author | Karel Kočí <cynerd@email.cz> | 2017-04-30 12:47:30 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-04-30 12:47:30 +0200 |
commit | a2cfee41a7a3aefacce5db6f13e52e5540d51779 (patch) | |
tree | fb402c36c3cc07dff1ecb7a57e564510936d76c7 /sys-boot/linux/files/config_miss.sh | |
parent | 09a210722e2d03129aed732ef11ed5a7f490b50d (diff) | |
download | gentoo-personal-overlay-a2cfee41a7a3aefacce5db6f13e52e5540d51779.tar.gz gentoo-personal-overlay-a2cfee41a7a3aefacce5db6f13e52e5540d51779.tar.bz2 gentoo-personal-overlay-a2cfee41a7a3aefacce5db6f13e52e5540d51779.zip |
Base linux on arch configuration
Diffstat (limited to 'sys-boot/linux/files/config_miss.sh')
-rwxr-xr-x | sys-boot/linux/files/config_miss.sh | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/sys-boot/linux/files/config_miss.sh b/sys-boot/linux/files/config_miss.sh deleted file mode 100755 index c6aec49..0000000 --- a/sys-boot/linux/files/config_miss.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -set -e - -CNF="$(dirname $0)/configs" - -CONFS="base gentoo" - -while [ $# -gt 0 ]; do - case "$1" in - --help|-h) - echo "Usage: $0 [OPTION]... CONFIG..." - echo "Combine configurations and esure that we have corrent ones." - echo - echo "Options:" - echo " --repeat, -r NUMBER" - echo " Number of repeats before we bail out on configuration." - exit - ;; - --repeat|-r) - shift - REPEAT="$1" - ;; - -*) - echo "Warning: ignoring uknown option: $1" >&2 - ;; - *) - if [ -f "$CNF/$1" ]; then - CONFS="$CONFS $1" - else - echo "Warning: ignoring requested missing configuration: $1" >&2 - fi - ;; - esac - shift -done - -if [ "$ARCH" = "x86_64" ] || [ "$(uname -m)" = "x84_64" ]; then - CONFS="$CONFS x86_64" -fi - -for C in $CONFS; do - while read L; do - echo "$L" | grep -qE "^[[:space:]]*$" && continue # ignore empty lines - echo "$L" | grep -qE "#.*" && continue # Ignore comments - OPTION="$(echo "$L" | grep -oE '^CONFIG_.*=')" - VALUE="$(echo "$L" | grep -oE '=.*$')" - if [ "$VALUE" = "=n" ]; then - if grep -qE "^$OPTION=y" .config; then - echo -e "\e[1;31mY:\e[0m$L" - fi - else - if ! grep -qE "^$L$" .config; then - echo -e "\e[1;31mN:\e[0m$L" - fi - fi - done < "$CNF/$C" -done |