aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJason Woodward2004-06-29 05:26:27 +0000
committerJason Woodward2004-06-29 05:26:27 +0000
commitbd96646e71a93e600e9a577e6b3e387deebb6029 (patch)
treec4c34af10a51c3646ad95603a197c84e50d6e7a1 /Makefile
parenta7c0a7db8c9b1591a53891479c321a4c96c45892 (diff)
downloadslapt-get-bd96646e71a93e600e9a577e6b3e387deebb6029.tar.gz
makefile update, autogenerated slapt-getrc.new is now bare bones with a pointer comment to /usr/doc/slapt-get*/example.slapt-getrc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bac015..8ecf8fa 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,9 @@ dopkg:
@chown root:bin ./pkg/sbin/$(PROGRAM_NAME)
@strip ./pkg/sbin/$(PROGRAM_NAME)
@cp example.slapt-getrc ./pkg/etc/slapt-getrc.new
+ @echo "# See /usr/doc/$(PROGRAM_NAME)-$(VERSION)/example.slapt-getrc " > ./pkg/etc/slapt-getrc.new
+ @echo "# for example source entries and configuration hints." >> ./pkg/etc/slapt-getrc.new
+ @cat example.slapt-getrc |grep -v '^#'|grep -v '^$$' >> ./pkg/etc/slapt-getrc.new
@mkdir -p ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
@cp example.slapt-getrc COPYING Changelog INSTALL README FAQ TODO ./pkg/usr/doc/$(PROGRAM_NAME)-$(VERSION)/
@echo "if [ ! -f etc/slapt-getrc ]; then mv etc/slapt-getrc.new etc/slapt-getrc; else diff -q etc/slapt-getrc etc/slapt-getrc.new >/dev/null 2>&1 && rm etc/slapt-getrc.new; fi; if [ -L /usr/lib/libslapt.so ]; then rm /usr/lib/libslapt.so;fi; ln -s /usr/lib/libslapt-$(VERSION).so /usr/lib/libslapt.so" > pkg/install/doinst.sh