mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-26 01:16:33 +11:00
[fix] Makefile echo of tabs
This commit is contained in:
parent
b36c27ab69
commit
480825bd65
1 changed files with 3 additions and 6 deletions
9
init.sh
9
init.sh
|
@ -1,10 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
APP_NAME=$1
|
APP_NAME=$1
|
||||||
if [ -z "$APP_NAME"]
|
if [ -z "$APP_NAME"]; then APP_NAME="rust-console-hello"; fi
|
||||||
then
|
|
||||||
APP_NAME="rust-console-hello"
|
|
||||||
fi
|
|
||||||
|
|
||||||
TARGET="thumbv4-none-agb"
|
TARGET="thumbv4-none-agb"
|
||||||
CRT_LOCAL="crt0.s"
|
CRT_LOCAL="crt0.s"
|
||||||
|
@ -37,7 +34,7 @@ wget https://raw.githubusercontent.com/rust-console/gba/master/examples/hello1.r
|
||||||
mv hello1.rs $APP_NAME/src/main.rs
|
mv hello1.rs $APP_NAME/src/main.rs
|
||||||
|
|
||||||
# setup make file
|
# setup make file
|
||||||
echo "CRT_FILE=$(echo $CRT_LOCAL)
|
echo -e "CRT_FILE=$(echo $CRT_LOCAL)
|
||||||
CRT_OUTPUT=crt0.o
|
CRT_OUTPUT=crt0.o
|
||||||
PROJECT_NAME=$(echo $APP_NAME)
|
PROJECT_NAME=$(echo $APP_NAME)
|
||||||
TARGET=$(echo $TARGET)
|
TARGET=$(echo $TARGET)
|
||||||
|
@ -57,7 +54,7 @@ build-prod:
|
||||||
" > $APP_NAME/Makefile
|
" > $APP_NAME/Makefile
|
||||||
|
|
||||||
# setup the readme file
|
# setup the readme file
|
||||||
echo "Rust console project
|
echo -e "Rust console project
|
||||||
----
|
----
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
Loading…
Add table
Reference in a new issue