-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
R. S. Doiel
committed
Dec 9, 2024
1 parent
eeb2528
commit c1839b4
Showing
57 changed files
with
1,427 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ | |
#*_dialog.md | ||
*_dialog.html | ||
development_approach.html | ||
bin/* | ||
man/* | ||
dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,57 @@ | ||
|
||
# Installation | ||
|
||
This project is experiment and yet to reach the working proof of concept stage. There is no installation process beyond clone this repository. | ||
This project is experiment and yet to reach the working proof of concept stage. There is only a mimimal installation process beyond cloning this repository and building from source. | ||
|
||
## Quick install with curl or irm | ||
|
||
There is an experimental installer.sh script that can be run with the following command to install latest table release. This may work for macOS, Linux and if you’re using Windows with the Unix subsystem. This would be run from your shell (e.g. Terminal on macOS). | ||
|
||
curl https://caltechlibrary.github.io/metadatatools/installer.sh | sh | ||
|
||
This will install dataset and datasetd in your $HOME/bin directory. | ||
|
||
If you are running Windows 10 or 11 use the Powershell command below. | ||
|
||
irm https://caltechlibrary.github.io/metadatatools/installer.ps1 | iex | ||
|
||
If your want to install a specific verions set the PKG_VERSION environment variable then download. E.g. version 0.0.1 in tihs example. | ||
|
||
For Linux and macOS | ||
|
||
export PKG_VERSION=0.0.1 | ||
curl https://caltechlibrary.github.io/metadatatools/installer.sh | sh | ||
|
||
For Windows | ||
|
||
$env:PKG_VERSION = '0.0.1' | ||
irm https://caltechlibrary.github.io/metadatatools/installer.ps1 | iex | ||
|
||
|
||
|
||
## Build and install from source | ||
|
||
### Software Requiremets for building from source | ||
|
||
- Deno >= 2.1.3 | ||
- Pandoc >= 3.1.12 | ||
- GNU Make >= 3.81 | ||
|
||
### Steps | ||
|
||
1. Clone the GitHub repository | ||
2. change into the metadatatools directory | ||
3. Run `make` | ||
4. Run `make test` | ||
4. Run `make install` | ||
|
||
~~~ | ||
git clone https://github.com/caltechlibrary/metadatatools | ||
cd metadatatools | ||
make | ||
make test | ||
make install | ||
~~~ | ||
|
||
## Software Requiremets | ||
|
||
- Deno >= 2.1.2 | ||
- Pandoc >= 3.1 | ||
- GNU Make >= 3.81 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
ls -1 *.ts | grep -v '_test.ts' | grep -v 'deps.ts'| grep -v 'demo_' | grep -v 'mod.ts' \ | ||
while read -r FNAME; do | ||
echo | ||
echo "// ${FNAME} export" | ||
echo "export {" | ||
grep 'export' "${FNAME}" | \ | ||
grep -v 'export {' | \ | ||
cut -d '(' -f 1 | \ | ||
sed -E 's/export//;s/function//;s/async//'; | ||
echo "} from './${FNAME}';" ; | ||
done |
Oops, something went wrong.