diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-04 11:00:59 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-10-04 11:00:59 +0200 |
| commit | f963af5e1367294c0c9bdf4897e8ee373806f135 (patch) | |
| tree | 94d8763363051109b178b21e07851950cc5546ad | |
| parent | 2c497e142d9dea925be60ddea8715fec250add03 (diff) | |
Updateé
| -rw-r--r-- | public/index.html | 1 | ||||
| -rwxr-xr-x | refresh.sh | 9 |
2 files changed, 5 insertions, 5 deletions
diff --git a/public/index.html b/public/index.html deleted file mode 100644 index cd08755..0000000 --- a/public/index.html +++ /dev/null @@ -1 +0,0 @@ -Hello world! @@ -2,7 +2,7 @@ wai=$(dirname $(readlink -f "$0")) # Current script directory projects_dir=${wai}/projects -www_dir=${wai}/public +www_dir=${wai}/public/ projects_out_dir=${www_dir}/projects/ template_file=${wai}/template.html @@ -31,13 +31,14 @@ do name=$(basename $p) html=$projects_out_dir/$name/index.html js=$projects_out_dir/$name/index.js + js2=projects/$name/index.js page=${www_dir}/${name}.html - - # Create html echo $p + # Create html + echo $projects_out_dir cp -r $p $projects_out_dir/ cat $template_file |sed "/\${CONTENT}/r $html"|sed '/\${CONTENT}/d' > $page - sed -i "s#\${JS}#${js}#g" $page + sed -i "s#\${JS}#${js2}#g" $page sed -i "s#\${project_name}#${name}#g" $page # Add links |
