[vhffs-dev] [svn] commit: r234 - /trunk/Makefile

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: gradator
Date: Sat Oct 21 05:06:51 2006
New Revision: 234

Log:
Fixed tuxshell again :P


Modified:
    trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sat Oct 21 05:06:51 2006
@@ -69,7 +69,7 @@
 	    } \
 	    unlink( \$$link ) if( -f \$$link ); \
 	    (symlink( \"$(DESTDIR)/usr/share/vhffs/api\" , \$$link ) &&  print \"Link API with \$$link\n\") || \
-		print \"** WARNING ** Unable to create symlink, please link /usr/share/vhffs/api with Vhffs in a perl include directory, please contact Vhffs team\n\";"
+		print \"\n\n** WARNING **\n\nUnable to create symlink for Perl modules, please link /usr/share/vhffs/api with Vhffs in a perl include directory, please contact Vhffs team if you need help\n\n\";"
 		
 build-shell:
 	install -d -m 755 $(SHELLDIR)
@@ -77,7 +77,7 @@
 
 add-shell:
 	install -d -m 755 $(DESTDIR)/etc
-	if [ -f $(DESTDIR)/etc/shells ]; then grep -c "$(SHELLDIR)/tuxshell" $(DESTDIR)/etc/shells > /dev/null ; if [ $? -ne 0 ]; then echo "$(SHELLDIR)/tuxshell" >> $(DESTDIR)/etc/shells ; fi ; else echo "$(SHELLDIR)/tuxshell" > $(DESTDIR)/etc/shells ; fi
+	if [ -f $(DESTDIR)/etc/shells ]; then if [ `grep -c "$(SHELLDIR)/tuxshell" $(DESTDIR)/etc/shells` = "0" ]; then echo "$(SHELLDIR)/tuxshell" >> $(DESTDIR)/etc/shells ; fi ; else echo "$(SHELLDIR)/tuxshell" > $(DESTDIR)/etc/shells ; fi
 
 install-bots:
 	install -d -m 755 $(BOTSDIR)	




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/