-
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.
root: enabled research paper pipeline (srcRESEARCH)
Since we want this library to be reliably good, we should enable the research paper pipeline and place all our details and data in it. That way, interested folks and code auditors can review the materials without needing to ping-pong with the maintainers that often. This patch enables research paper pipeline (srcRESEARCH) in root repository. Co-authored-by: Shuralyov, Jean <[email protected]> Co-authored-by: Galyna, Cory <[email protected]> Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]> Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
- Loading branch information
1 parent
30de314
commit 963a1c7
Showing
10 changed files
with
606 additions
and
175 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
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,53 @@ | ||
#!/bin/sh | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at: | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
. "${LIBS_AUTOMATACI}/services/io/fs.sh" | ||
. "${LIBS_AUTOMATACI}/services/i18n/translations.sh" | ||
|
||
|
||
|
||
|
||
# initialize | ||
if [ "$PROJECT_PATH_ROOT" = "" ]; then | ||
>&2 printf "[ ERROR ] - Please run me from automataCI/ci.sh.ps1 instead!\n" | ||
return 1 | ||
fi | ||
|
||
|
||
|
||
|
||
RELEASE_Run_PDF() { | ||
#_target="$1" | ||
|
||
|
||
# validate input | ||
if [ $(FS_Is_Target_A_PDF "$1") -ne 0 ]; then | ||
return 0 | ||
fi | ||
|
||
|
||
# execute | ||
___dest="PAPER.pdf" | ||
I18N_Publish "$___dest" | ||
___dest="${PROJECT_PATH_ROOT}/${___dest}" | ||
if [ "${1##*${PROJECT_RESEARCH_IDENTIFIER}}" != "$1" ]; then | ||
## it's a research paper | ||
FS_Copy_File "$1" "$___dest" | ||
if [ $? -ne 0 ]; then | ||
return 1 | ||
fi | ||
fi | ||
|
||
|
||
# report status | ||
return 0 | ||
} |
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,65 @@ | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
# of the License at: | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
. "${env:LIBS_AUTOMATACI}\services\io\fs.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\i18n\translations.ps1" | ||
|
||
|
||
|
||
|
||
# initialize | ||
if (-not (Test-Path -Path $env:PROJECT_PATH_ROOT)) { | ||
Write-Error "[ ERROR ] - Please run from automataCI\ci.sh.ps1 instead!`n" | ||
return | ||
} | ||
|
||
|
||
|
||
|
||
function RELEASE-Run-PDF { | ||
param( | ||
[string]$_target | ||
) | ||
|
||
|
||
# validate input | ||
$___process = FS-Is-Target-A-PDF "${_target}" | ||
if ($___process -ne 0) { | ||
return 0 | ||
} | ||
|
||
if ($(STRINGS-Is-Empty "${env:PROJECT_SOURCE_GIT_REMOTE}") -eq 0) { | ||
return 0 | ||
} | ||
|
||
$___process = GIT-Is-Available | ||
if ($___process -ne 0) { | ||
return 0 | ||
} | ||
|
||
|
||
# execute | ||
$___dest = "PAPER.pdf" | ||
$null = I18N-Publish "${___dest}" | ||
$___dest = "${env:PROJECT_PATH_ROOT}\${___dest}" | ||
if ($($_target -replace "^.*${env:PROJECT_RESEARCH_IDENTIFIER}") -ne "${_target}") { | ||
## it's a research paper | ||
$___process = FS-Copy-File "$1" "${___dest}" | ||
if ($___process -ne 0) { | ||
$null = I18N-Publish-Failed | ||
return 1 | ||
} | ||
} | ||
|
||
|
||
# report status | ||
return 0 | ||
} |
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
Oops, something went wrong.