Commit Graph

23 Commits

Author SHA1 Message Date
T. Joseph Carter
3cf6d9e4ff Make sure log dir exists before trying to write into it 2015-03-28 20:42:47 -07:00
T. Joseph Carter
a540056414 ./libretro-build.sh --nologs to disable logging 2015-03-28 20:30:22 -07:00
T. Joseph Carter
1a30a6a1a1 Implement log truncation, now ready for testing
What (should) work):

 - LIBRETRO_DEVELOPER (default 1) to output all build progress

 - LIBRETRO_LOG_DIR (default $WORKDIR/log) to change WHERE logs get
   written.  Useful for buildbots that have multiple WORKDIRs to put
   logs in roughly the same place.

 - LIBRETRO_LOG_SUPER (default libretro-super.log) to change the name of
   libretro-build.sh's log file.  No log would be written if unset, but
   script-modules/log.sh sets it if unset for now.

 - LIBRETRO_LOG_CORE (default %s.log) to change the name pattern for a
   core log file.  The %s is replaced with the "safe" core name used by
   libretro-super's rules.

 - LIBRETRO_LOG_APPEND (default ""), if set, would not clobber the log
   files the next time you ran libretro-super.  Caution: mame's output
   is 34 megabytes on its own for a single successful build

What doesn't work yet:

 - You should be able to unset LIBRETRO_LOG_SUPER and LIBRETRO_LOG_CORE
   and have your decision mean something.  This is the #1 thing I must
   change, and I will do so in the next day or so.

 - We assume that if you want output to screen and log, you'll have the
   tee command.  What if you don't?  We choose log over screen in that
   case, but tee is such a trivial tool to implement, perhaps we should?

 - Currently logs lack date stamps.  Bash's built-in printf has a way to
   do this, but Apple STUPIDLY disables it because Apple.  Turns out
   that bash 2.05a didn't have the feature anyway.  You may not have the
   UNIX date command on Windows if you're somehow running bash from
   cmd.exe.  Worse, you have a command of the same name that requires a
   /t argument to do half of what date does on UNIX.  Running into
   limits of bash here, easily solved using most anything else.
2015-03-27 19:31:19 -07:00
T. Joseph Carter
a395d977b1 Use .log extension instead of .txt (for clobbering) 2015-03-27 19:10:01 -07:00
T. Joseph Carter
0e6150d4af More logging improvements 2015-03-27 18:31:51 -07:00
T. Joseph Carter
a2633e0198 Avoid use of wc command 2015-03-27 18:07:29 -07:00
T. Joseph Carter
910a8010f8 Start of logging subsystem 2015-03-27 16:45:38 -07:00
T. Joseph Carter
22e3e07d42 Changed how build summary is produced, start of new logging 2015-03-25 20:09:42 -07:00
T. Joseph Carter
7e5103ebb9 Add iscpu_64bit(), recognize "amd64" as uname -m 2015-03-20 07:17:59 -07:00
T. Joseph Carter
90d8054990 Fetch only the cores we can build with --cores option 2015-03-10 07:20:11 -07:00
T. Joseph Carter
c2302eba83 "Faster" for loop is only "faster" because it was broken 2015-03-06 20:29:47 -08:00
T. Joseph Carter
644f6a79d0 No need to edit libretro-fetch.sh when you add a core now 2015-03-04 19:40:22 -08:00
T. Joseph Carter
cc1d8eb153 No sense in echo -e if it isn't gonna -e 2015-03-03 14:16:01 -08:00
T. Joseph Carter
d26f679d75 Don't depend on \e (see if this fixes color Twinaphex!) 2015-03-03 14:09:32 -08:00
T. Joseph Carter
d9cd94cd5f SOME color in the scripts, can be disabled in libretro-config{,-user}.sh 2015-03-03 00:13:02 -08:00
T. Joseph Carter
88e94396dd Rules-based retroarch fetch! 2015-03-01 02:25:06 -08:00
T. Joseph Carter
82a87696d4 Some cleanups of the fetch rules a bit, move echo_cmd to script-modules 2015-02-26 00:14:56 -08:00
T. Joseph Carter
88f9dfeb1b Massively clean up mupen64plus rule 2015-02-22 23:00:15 -08:00
T. Joseph Carter
ff274a137c SKIP_UNCHANGED=1 causes libretro-build.sh to not build cores that didn't change since last fetch. Not enabled by default because it interferes with development. 2015-02-18 22:31:02 -08:00
T. Joseph Carter
d18e7a5fd5 Add support to fetch_git for shallow clones 2015-02-17 18:49:59 -08:00
Carl Melville
42b9ad08b1 Remove extra newline from most files 2015-02-17 18:49:59 -08:00
T. Joseph Carter
662b420d76 Get rid of echo_cmd (it didn't do what it's supposed to anyway) 2015-02-16 20:56:00 -08:00
T. Joseph Carter
c0a958d667 rename iKarith-super dir to script-modules 2015-02-16 19:51:31 -08:00