diff --git a/templates/lib/before_deploy.sh b/templates/lib/before_deploy.sh index a869279..a444c36 100644 --- a/templates/lib/before_deploy.sh +++ b/templates/lib/before_deploy.sh @@ -22,26 +22,26 @@ main() { # TODO: combine with -C lto case $TYPE in - static) - linking_args="--crate-type staticlib" - ;; - *) - linking_args="--crate-type cdylib" - ;; + static) + linking_args="--crate-type staticlib" + ;; + *) + linking_args="--crate-type cdylib" + ;; esac cross rustc --lib --target $TARGET --release -- $linking_args case $TYPE-$TRAVIS_OS_NAME in - static-*) - cp target/$TARGET/release/lib$PKG_NAME.a $stage/ - ;; - *-osx) - cp target/$TARGET/release/lib$PKG_NAME.dylib $stage/ - ;; - *) - cp target/$TARGET/release/lib$PKG_NAME.so $stage/ - ;; + static-*) + cp target/$TARGET/release/lib$PKG_NAME.a $stage/ + ;; + *-osx) + cp target/$TARGET/release/lib$PKG_NAME.dylib $stage/ + ;; + *) + cp target/$TARGET/release/lib$PKG_NAME.so $stage/ + ;; esac cd $stage