summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-02-13 06:55:55 (GMT)
committerGitHub <noreply@github.com>2019-02-13 06:55:55 (GMT)
commit2da27758a9638b07f06d490251f0e44abf398057 (patch)
tree4ec507c1c598bbbd75b1e0846d01f383bef19f99 /ct-ng.in
parentdb4fdf015061e5c8a39cbb3c8ff4c33bea9ebdf8 (diff)
parent47e16f64e4bb98b8bd616a9bf45f80113a0794f1 (diff)
Merge pull request #1136 from stilor/upgrading2
Upgradability, phase 2
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 0120d35..0a12e09 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -145,7 +145,10 @@ defconfig: check-config
$(SILENT)CT_VCHECK=save $(CONF) --defconfig=$${DEFCONFIG-defconfig} $(KCONFIG_TOP)
upgradeconfig: .config check-config
+ $(SILENT)cp .config .config.before-upgrade
$(SILENT)CT_UPGRADECONFIG=yes $(bash) $(CT_LIB_DIR)/scripts/version-check.sh .config
+ @$(CT_ECHO) "Saving .config as .config.before-olddefconfig before running 'ct-ng olddefconfig'"
+ $(SILENT)cp .config .config.before-olddefconfig
$(SILENT)$(CONF) --olddefconfig $(KCONFIG_TOP)
@$(CT_ECHO) "Done. You may now run 'ct-ng menuconfig' to edit the configuration."