Set up bash scripts that can be used as a build environment #52

Merged
savanni merged 4 commits from ci-cd into main 2023-08-07 19:23:27 +00:00
7 changed files with 1242 additions and 4 deletions
Showing only changes of commit 7ebbbfd03b - Show all commits

1200
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

4
Cargo.toml Normal file
View File

@ -0,0 +1,4 @@
[workspace]
members = [
"ifc"
]

27
build.sh Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
export CARGO=`which cargo`
if [ -z "${TARGET-}" ]; then
echo "No target defined. build all doesn't exist yet"
exit 1
fi
if [ -z "${CMD-}" ]; then
CMD="release"
fi
export CMD
case $TARGET in
ifc)
MODULE=ifc builders/rust.sh
;;
"")
echo "No target defined. build all doesn't exist yet"
;;
esac

View File

@ -1,8 +1,15 @@
#!/usr/bin/env bash
if [[ ! -z "$MODULE" ]]; then
set -euo pipefail
if [ ! -z "$MODULE" ]; then
MODULE="-p $MODULE"
fi
if [ -z "${PARAMS-}" ]; then
PARAMS=""
fi
case $CMD in
build)
$CARGO build $MODULE $PARAMS

View File

@ -1,5 +1,5 @@
[package]
name = "international-fixed-calendar"
name = "ifc"
description = "chrono-compatible-ish date objects for the International Fixed Calendar"
version = "0.1.0"
authors = ["Savanni D'Gerinel <savanni@luminescent-dreams.com>"]

View File

@ -12,7 +12,7 @@ You should have received a copy of the GNU General Public License along with Lum
extern crate chrono;
extern crate chrono_tz;
extern crate international_fixed_calendar as IFC;
extern crate ifc as IFC;
use chrono::{Datelike, Utc};

View File

@ -11,7 +11,7 @@ You should have received a copy of the GNU General Public License along with Lum
*/
use chrono::{Datelike, Utc};
use international_fixed_calendar as IFC;
use ifc as IFC;
use iron::headers;
use iron::middleware::Handler;
use iron::modifiers::Header;