projects
/
infodrom.org
/
www.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab8d9ad
)
Create the suffix .php instead of .php3
author
Joey Schulze
<joey@infodrom.org>
Tue, 26 Dec 2006 19:42:28 +0000
(19:42 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Tue, 26 Dec 2006 19:42:28 +0000
(19:42 +0000)
bin/fixsuffix
patch
|
blob
|
history
diff --git
a/bin/fixsuffix
b/bin/fixsuffix
index
e639d8b
..
d12cb97
100755
(executable)
--- a/
bin/fixsuffix
+++ b/
bin/fixsuffix
@@
-5,7
+5,7
@@
# .html -> .shtml
# Require "<!--#include"
#
# .html -> .shtml
# Require "<!--#include"
#
-# .html -> .php
3
+# .html -> .php
# Require "<?"
for f in $*
# Require "<?"
for f in $*
@@
-18,7
+18,7
@@
do
if grep -q '<?' $f
then
base=${f%.html}
if grep -q '<?' $f
then
base=${f%.html}
- mv -f $f $base.php
3
+ mv -f $f $base.php
fi
fi
done
fi
fi
done