~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to bin/build.sh

  • Committer: Selene ToyKeeper
  • Date: 2023-10-30 15:26:03 UTC
  • mto: (483.1.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20231030152603-m87wiwtv38z1ruea
build.sh: use busybox-compatible grep args

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
}
49
49
 
50
50
run $CPP $OTHERFLAGS $CPPFLAGS -o foo.cpp $PROGRAM.c
51
 
grep --text -E -v '^#|^$' foo.cpp > $PROGRAM.cpp ; rm foo.cpp
 
51
grep -a -E -v '^#|^$' foo.cpp > $PROGRAM.cpp ; rm foo.cpp
52
52
run $CC $OTHERFLAGS $CFLAGS -o $PROGRAM.o -c $PROGRAM.c
53
53
run $CC $OFLAGS $LDFLAGS -o $PROGRAM.elf $PROGRAM.o
54
54
run $OBJCOPY $OBJCOPYFLAGS $PROGRAM.elf $PROGRAM.hex