Convert script to strict mode
[infodrom.org/service.infodrom.org] / bin / fixsuffix
index 37982e1..9f7ea9d 100755 (executable)
@@ -5,19 +5,19 @@
 # .html -> .shtml
 #   Require "<!--#include"
 #
-# .html -> .php3
+# .php -> html
 #   Require "<?"
 
 for f in $*
 do
     if grep -q '<!--[ ]*#include' $f
     then
-       base=${f%.php3}
+       base=${f%.php}
        mv -f $f $base.shtml
     else
         if ! grep -q '<?' $f
        then
-           base=${f%.php3}
+           base=${f%.php}
            mv -f $f $base.html
        fi
     fi