aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-02-12 11:02:50 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2024-02-12 11:02:50 +0100
commit2d510e4a688aae05753735781f4eeb5a2a7237f5 (patch)
treeccec42a8e79862f554b703888b8f2b055a1a77e6 /configure
parent4c960080625bf23d50c3e487d79b28443a1ccf24 (diff)
downloaddotfiles-2d510e4a688aae05753735781f4eeb5a2a7237f5.tar.gz
dotfiles-2d510e4a688aae05753735781f4eeb5a2a7237f5.zip
Bash things
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 8e67254..a351dd5 100755
--- a/configure
+++ b/configure
@@ -3,6 +3,18 @@
set -o pipefail
M4_DEF_FILE="system.m4"
+if [ -f "${M4_DEF_FILE}" ]; then
+ dialog \
+ --backtitle "Dotfile configuration" \
+ --title "Overwrite settings?" \
+ --defaultno \
+ --yesno "A system.m4 file already exists, do you want to make that file over again? If you press No, the Makefile will be processed again based on the current system.m4 file." 0 0
+ if [ "$?" -eq 1 ]; then
+ m4 -P Makefile.m4 > Makefile
+ exit 0
+ fi
+fi
+
HOME_DIRECTORY=$(dialog \
--backtitle "Dotfile configuration" \
--title "Configure" \