mirror of
https://github.com/morgant/mlvwmrc.git
synced 2024-12-26 16:29:15 +00:00
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:
parent
d0e28d452c
commit
cb5f46e3fb
4
Makefile
4
Makefile
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user