This repository was archived by the owner on Dec 3, 2021. It is now read-only.
-
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.
Break out current write a connector documentation, improve documentat…
…ion, etc. (#4) * wip: moved general write a connector documentation out of cobie specific help into its own markdown * fixed to run on windows and added notes to readme * wip: Removed COBie xls and provide curr. dl instr. * removed inadvertent file * wip: fixed some bad links * wip: corrected markdown problems * corrected link from "tree" to "blob" * wip: fixed remaining broken links
- Loading branch information
1 parent
148e31d
commit dc1010c
Showing
16 changed files
with
296 additions
and
181 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,47 @@ | ||
echo off | ||
|
||
SET ARG=%1 | ||
|
||
IF NOT DEFINED ARG goto usage | ||
|
||
IF %ARG%==--clean goto clean | ||
IF %ARG%==--all goto all | ||
IF %ARG%==--copy goto copyToConnector | ||
goto usage | ||
|
||
:all | ||
IF NOT DEFINED pythonCmd Set pythonCmd=python.exe | ||
echo extracting all | ||
IF NOT EXIST output mkdir output | ||
%pythonCmd% extractor.py input/COBieSampleSheetV1.xlsx output/intermediary_v1.db # create | ||
%pythonCmd% extractor.py input/COBieSampleSheetV2.xlsx output/intermediary_v2.db # data change | ||
%pythonCmd% extractor.py input/COBieSampleSheetV3.xlsx output/intermediary_v3.db # schema change (addition) | ||
%pythonCmd% extractor.py input/COBieSampleSheetV4.xlsx output/intermediary_v4.db # schema change (deletion) | ||
|
||
goto end | ||
|
||
:clean | ||
echo cleaning | ||
rmdir /s /q output | ||
|
||
goto end | ||
|
||
:copyToConnector | ||
set assetsDir=..\..\COBie-connector\src\test\assets\ | ||
IF NOT EXIST %assetsDir% mkdir %assetsDir% | ||
echo copying databases from extractor output to connector assets | ||
copy .\output\*.db %assetsDir% | ||
set assetsDir= | ||
goto end | ||
|
||
:usage | ||
echo RunExtractor usage | ||
echo ----------------------------- | ||
echo RunExtractor "<option>" | ||
echo e.g. RunExtractor --all | ||
echo options: | ||
echo --all - extracts all sample sheets | ||
echo --clean - removes output from previous extractions | ||
echo --copy - copies databases from extractor output to connector assets | ||
:end | ||
echo runextractor completed! |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.