[eggheads-patches] PATCH: old-bsd-compat-stuff.diff

Tothwolf tothwolf at concentric.net
Sat Oct 9 09:11:31 CST 1999


old-bsd-compat-stuff.diff:
  Minor changes to several files to work with *old* BSD and other *nix.
  test -x should not be used
  "#! /bin/sh" should be used instead of "#!/bin/sh"

-Toth
-------------- next part --------------
Index: Makefile.in
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/Makefile.in,v
retrieving revision 1.15
diff -u -r1.15 Makefile.in
--- Makefile.in	1999/10/09 00:54:32	1.15
+++ Makefile.in	1999/10/09 05:36:24
@@ -182,7 +182,7 @@
 		echo "You must specify a destination directory with DEST="; \
 		exit 1; \
 	fi
-	@if test ! -x eggdrop; then \
+	@if test ! -f eggdrop; then \
 		echo "You haven't compiled eggdrop yet."; \
 		exit 1; \
 	fi
@@ -201,13 +201,13 @@
 		mkdir $(DEST)/language; \
 	fi
 	@$(CP2) language/* src/mod/*.mod/*.lang $(DEST)/language/
-	@if test -r $(DEST)/eggdrop; then \
+	@if test -f $(DEST)/eggdrop; then \
 		rm -f $(DEST)/oeggdrop; \
 	fi
-	@if test ! -r $(DEST)/motd; then \
+	@if test ! -f $(DEST)/motd; then \
 		$(CP1) motd $(DEST)/; \
 	fi
-	@if test ! -r $(DEST)/telnet-banner; then \
+	@if test ! -f $(DEST)/telnet-banner; then \
 		$(CP1) telnet-banner $(DEST)/; \
 	fi
 	@if test -h $(DEST)/modules; then \
@@ -224,7 +224,7 @@
 		mkdir $(DEST)/modules\-${NEWVERSION}; \
 	fi
 	@$(LN_S) modules\-${NEWVERSION} $(DEST)/modules
-	@if test -r assoc.so; then \
+	@if test -f assoc.so; then \
 		echo Copying new modules.; \
 		$(CP3) *.so $(DEST)/modules/; \
 	fi
@@ -232,7 +232,7 @@
 		echo Removing symlink to archival eggdrop binary.; \
 		rm -f $(DEST)/eggdrop; \
 	fi
-	@if test -r $(DEST)/eggdrop; then \
+	@if test -f $(DEST)/eggdrop; then \
 		echo Renamed the old \'eggdrop\' executable to \'oeggdrop\'.; \
 		mv -f $(DEST)/eggdrop $(DEST)/oeggdrop; \
 	fi
Index: eggdrop.conf.dist
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/eggdrop.conf.dist,v
retrieving revision 1.31
diff -u -r1.31 eggdrop.conf.dist
--- eggdrop.conf.dist	1999/10/07 23:12:01	1.31
+++ eggdrop.conf.dist	1999/10/09 05:36:31
@@ -1,5 +1,5 @@
-#!/path/to/eggdrop
-# ^- set that to the directory eggdrop is in ie "#!/users/lamest/egg/eggdrop"
+#! /path/to/eggdrop
+# ^- set that to the directory eggdrop is in ie "#! /users/lamest/egg/eggdrop"
 #
 # This is a sample configuration file for your bot.  You will definitely
 # want to edit this, to set up your bot.  Right now it creates a bot called
Index: scripts/autobotchk
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/scripts/autobotchk,v
retrieving revision 1.2
diff -u -r1.2 autobotchk
--- scripts/autobotchk	1999/06/24 19:23:32	1.2
+++ scripts/autobotchk	1999/10/09 05:36:32
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 # ^-- little trick to restart using tclsh \
 exec tclsh "$0" "$@"
 #
@@ -139,7 +139,7 @@
   puts "      !! without this, this program is useless\n\n"
   exit
  }
- puts $fd "#!/bin/sh\n#"
+ puts $fd "#! /bin/sh\n#"
  puts $fd "# Created on: [clock format [clock seconds] -format "%B %d, %Y @ %I:%M%p"]"
  puts $fd "# Created by: AutoBotchk 1.05 (C)1999 Jeff Fisher\n#"
  puts $fd "# (this is basically botchk from scripts/, credits to the author(s)\n#"
Index: scripts/botchk
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/scripts/botchk,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 botchk
--- scripts/botchk	1999/06/23 19:51:25	1.1.1.1
+++ scripts/botchk	1999/10/09 05:36:33
@@ -1,4 +1,4 @@
-#!/bin/sh
+#! /bin/sh
 #
 # new botchk  (for eggdrop 1.1)
 #
Index: scripts/weed
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/scripts/weed,v
retrieving revision 1.2
diff -u -r1.2 weed
--- scripts/weed	1999/09/26 18:46:18	1.2
+++ scripts/weed	1999/10/09 05:36:39
@@ -1,4 +1,6 @@
-#!/usr/local/bin/tclsh
+#! /bin/sh
+# ^-- little trick to restart using tclsh \
+exec tclsh "$0" "$@"
 #
 # weed out certain undesirables from an eggdrop userlist
 # try just typing 'tclsh weed' to find out the options


More information about the Patches mailing list