Updated Makefile's 'install' & 'install-bin' targets to find & move target files to a timestamped backup before performing installing. This fixes Issue #13 by removing the non-portable install(1) '-B' option, plus partially addresses Issue #8 by not overwriting the user's .mlvwm directory contents (though they'd still have to diff & restore any modifications manually).

This commit is contained in:
Morgan Aldridge 2024-05-07 12:17:20 -04:00
parent d0e28d452c
commit cb5f46e3fb

View File

@ -65,13 +65,15 @@ patterns:
unzip -d $(PATTERNS) "$(TEMP)/Mac OS Solid Color Backgrounds.zip"
install: install-bin
find $(HOME) -name ".mlvwm" -type d -exec mv {}{,.$(date +%Y%m%d-%H%M%S)} \;
cp -R $(CONF) $(HOME)/
ln -fs $(HOME)/$(CONF)/.mlvwmrc $(HOME)/.mlvwmrc
sed -i 's@/home2/tak/bin/pixmap@$(HOME)/$(PIXMAP)@g' $(HOME)/$(CONF)/.mlvwmrc
install-bin:
mkdir -p $(HOME)/$(BIN)
install -b -B .`date +%Y%m%d-%H%M%S` -m 700 -o $(USER) $(BIN)/mlvwm-* $(HOME)/$(BIN)
find ${HOME}/$(BIN) -name "mlvwm-*" ! -name "*.*" -exec mv {}{,.$(date +%Y%m%d-%H%M%S)} \;
install -m 700 -o $(USER) $(BIN)/mlvwm-* $(HOME)/$(BIN)
clean: clean-pixmap
rm -r $(TEMP)