Commit Diff


commit - 45a20fd0427c384c2962123c585d8dadd87f41de
commit + 1ecf319919277305fea3d35396c316fc23e7f3db
blob - fea4dad3c0d4a46ec4cb57de7adf7c590c028fb0
blob + e98573f497036f70b66151989ff74c9f39f17381
--- Makefile
+++ Makefile
@@ -41,6 +41,10 @@ compile.c: compile.sh *.c *.h
 mantab.c: mantab.sh nsh.8
 	sh ${.CURDIR}/mantab.sh ${.CURDIR}/nsh.8 > mantab.c
 
+afterinstall:
+	test -e ${PREFIX}/bin/save.sh || install -m 755 -o root -g bin \
+		${.CURDIR}/save-rw.sh ${PREFIX}/bin/save.sh
+
 release: clean
 	sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" ${.CURDIR}/nsh-version.mk
 	${MAKE} -C ${.CURDIR} dist