Set up a root build command

This commit is contained in:
Savanni D'Gerinel 2023-08-07 14:51:45 -04:00
parent 38443f4120
commit 7ebbbfd03b
7 changed files with 1242 additions and 4 deletions

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" MODULE="-p $MODULE"
fi fi
if [ -z "${PARAMS-}" ]; then
PARAMS=""
fi
case $CMD in case $CMD in
build) build)
$CARGO build $MODULE $PARAMS $CARGO build $MODULE $PARAMS

View File

@ -1,5 +1,5 @@
[package] [package]
name = "international-fixed-calendar" name = "ifc"
description = "chrono-compatible-ish date objects for the International Fixed Calendar" description = "chrono-compatible-ish date objects for the International Fixed Calendar"
version = "0.1.0" version = "0.1.0"
authors = ["Savanni D'Gerinel <savanni@luminescent-dreams.com>"] 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;
extern crate chrono_tz; extern crate chrono_tz;
extern crate international_fixed_calendar as IFC; extern crate ifc as IFC;
use chrono::{Datelike, Utc}; 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 chrono::{Datelike, Utc};
use international_fixed_calendar as IFC; use ifc as IFC;
use iron::headers; use iron::headers;
use iron::middleware::Handler; use iron::middleware::Handler;
use iron::modifiers::Header; use iron::modifiers::Header;