projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
updates
[silc.git]
/
scripts
/
silcdoc
/
gen.sh
diff --git
a/scripts/silcdoc/gen.sh
b/scripts/silcdoc/gen.sh
index 1b990eeb01919299891fbbabb83dc941509fb0b0..b11cff5cee62b74e39734bf53dfcfda3c815733b 100755
(executable)
--- a/
scripts/silcdoc/gen.sh
+++ b/
scripts/silcdoc/gen.sh
@@
-1,7
+1,8
@@
#!/bin/sh
cat << EOF > tmp.php
-
<?php $$page=$2
; require "$1"; ?>
+
<?php \$page="$2"
; require "$1"; ?>
EOF
-php -f tmp.php >$3
-rm -f tmp.php
\ No newline at end of file
+php -f tmp.php >$3
.tmp
+mv $3.tmp $3
+rm -f tmp.php