summaryrefslogtreecommitdiff
path: root/scripts/check_config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check_config.sh')
-rwxr-xr-xscripts/check_config.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/check_config.sh b/scripts/check_config.sh
deleted file mode 100755
index 648c05bd..00000000
--- a/scripts/check_config.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-# This script checks the compat-drivers configuration file and if changes were made
-# regenerates the compat_autoconf header.
-
-# These variables are expected to be exported:
-#COMPAT_CONFIG_CW=$(PWD)/config.mk
-#COMPAT_CONFIG=$(PWD)/.config
-#CONFIG_CHECK=$(PWD)/.config.mk_md5sum.txt
-#COMPAT_AUTOCONF=include/linux/compat_autoconf.h
-
-
-function gen_compat_autoconf {
- echo "./scripts/gen-compat-autoconf.sh $COMPAT_CONFIG $COMPAT_CONFIG_CW > $COMPAT_AUTOCONF"
- ./scripts/gen-compat-autoconf.sh $COMPAT_CONFIG $COMPAT_CONFIG_CW > $COMPAT_AUTOCONF
- md5sum $COMPAT_CONFIG $COMPAT_CONFIG_CW > $CONFIG_CHECK
-}
-
-which md5sum 2>&1 > /dev/null
-if [ $? -ne 0 ]; then
- echo "md5sum required to detect changes on config file"
- exit -1
-fi
-
-if [ ! -f $CONFIG_CHECK ]; then
- gen_compat_autoconf
- exit
-fi
-
-md5sum -c $CONFIG_CHECK 2> /dev/null 1>/dev/null
-
-if [ $? -ne 0 ]; then
- echo "Changes to compat-drivers's configuration was detected, regenerating autoconf..."
- gen_compat_autoconf
-fi
-