projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69462ab
)
Modified fixsuffix that copes with the new default being .php3 so most
author
Joey Schulze
<joey@infodrom.org>
Fri, 9 Jul 2004 20:11:01 +0000
(20:11 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 9 Jul 2004 20:11:01 +0000
(20:11 +0000)
of the pages won't be rebuilt all the time.
bin/fixsuffix
patch
|
blob
|
history
diff --git
a/bin/fixsuffix
b/bin/fixsuffix
index
e639d8b
..
37982e1
100755
(executable)
--- a/
bin/fixsuffix
+++ b/
bin/fixsuffix
@@
-12,13
+12,13
@@
for f in $*
do
if grep -q '<!--[ ]*#include' $f
then
- base=${f%.
html
}
+ base=${f%.
php3
}
mv -f $f $base.shtml
else
- if grep -q '<?' $f
+ if
!
grep -q '<?' $f
then
- base=${f%.
html
}
- mv -f $f $base.
php3
+ base=${f%.
php3
}
+ mv -f $f $base.
html
fi
fi
done