diff --git a/.gitignore b/.gitignore index 06aefd0..a9115d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ # ignore generated artifacts /artifacts +# ignore temporary directory if it remains after testing or so +/temp \ No newline at end of file diff --git a/bibtexbrowser.local.php b/bibtexbrowser.local.php index f908cb4..ca76904 100644 --- a/bibtexbrowser.local.php +++ b/bibtexbrowser.local.php @@ -1,23 +1,23 @@ getKey().'.html'; } diff --git a/makehtml.sh b/makehtml.sh index 0f6c6c1..660a065 100755 --- a/makehtml.sh +++ b/makehtml.sh @@ -1,9 +1,20 @@ #!/bin/bash +# set some paths/binary names depending on the OS +case "$(uname -s)" in + "Darwin") + PHP="php83" + ;; + # "Linux" is Linux + *) + PHP="php" + ;; +esac + # URL of the Bibtex file BIBTEX_URL="https://cloud.hiz-saarland.de/public.php/dav/files/Yj8FtZsTS9TkFWG" # command to run BibtexBrowser -BIBTEXBROWSER="php -c \"php_cli.ini\" -f \"bibtexbrowser.php\"" +BIBTEXBROWSER="${PHP} -c \"php_cli.ini\" -f \"bibtexbrowser.php\"" # DELETEME rm -rf "artifacts" "temp" @@ -20,7 +31,7 @@ then fi # copy static files -cp -fur "static" "artifacts/" +cp -fR "static" "artifacts/" for WEBSITE_LANGUAGE in german do :