Update of /cvsroot/alsa/alsa-driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24845
Modified Files: Makefile Log Message: back up the old init script before overwriting if the file is different. Index: Makefile =================================================================== RCS file: /cvsroot/alsa/alsa-driver/Makefile,v retrieving revision 1.104 retrieving revision 1.105 diff -u -r1.104 -r1.105 --- Makefile 5 Mar 2004 11:49:44 -0000 1.104 +++ Makefile 6 Mar 2004 16:58:35 -0000 1.105 @@ -164,13 +164,14 @@ .PHONY: install-scripts install-scripts: - if [ -d $(DESTDIR)/sbin/init.d ]; then \ - install -m 755 -g $(IGROUP) -o $(IUSER) utils/alsasound $(DESTDIR)/sbin/init.d/alsasound; \ - elif [ -d $(DESTDIR)/etc/rc.d/init.d ]; then \ - install -m 755 -g $(IGROUP) -o $(IUSER) utils/alsasound $(DESTDIR)/etc/rc.d/init.d/alsasound; \ - elif [ -d $(DESTDIR)/etc/init.d ]; then \ - install -m 755 -g $(IGROUP) -o $(IUSER) utils/alsasound $(DESTDIR)/etc/init.d/alsasound; \ - fi + @for d in /sbin/init.d /etc/rc.d/init.d /etc/init.d; do \ + if [ -d $(DESTDIR)$$d ]; then \ + if [ -f $(DESTDIR)$$d/alsasound ]; then \ + cmp -s utils/alsasound $(DESTDIR)$$d/alsasound || cp $(DESTDIR)$$d/alsasound $(DESTDIR)$$d/alsasound.old; \ + fi; \ + install -m 755 -g $(IGROUP) -o $(IUSER) utils/alsasound $(DESTDIR)$$d/alsasound; \ + break; \ + fi; done .PHONY: check-snd-prefix check-snd-prefix: ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog