Merged silc_1_0_branch to trunk.
[silc.git] / scripts / silcdoc / gen.sh
index 1b990eeb01919299891fbbabb83dc941509fb0b0..3fe9452afe96a069536cf6866e90cb1bfa0a2c68 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 cat << EOF > tmp.php
-  <?php $$page=$2; require "$1"; ?>
+<?php \$page="$4"; \$dest="$1"; \$type="$3"; require "$2"; ?>
 EOF
-php -f tmp.php >$3
-rm -f tmp.php
\ No newline at end of file
+php -f tmp.php >"$5".tmp
+mv "$5".tmp "$5"
+rm -f tmp.php