From f12b3b3ab3822ee090560132d4fb28d7a2fd7f74 Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Wed, 20 Jan 2010 01:33:30 +0000 Subject: [PATCH] changed egg-optchar to specify input egg files as coming from a text file, rather than on the command line. useful for rediculously long lists of files to operate on --- dtool/pptempl/Template.models.pp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/dtool/pptempl/Template.models.pp b/dtool/pptempl/Template.models.pp index 39ac92e307..1fa5142ddc 100644 --- a/dtool/pptempl/Template.models.pp +++ b/dtool/pptempl/Template.models.pp @@ -527,7 +527,20 @@ $[TAB]$[TOUCH_CMD] $[TARGET_DIR]/$[egg] // And this is the actual optchar pass. $[target] : $[sources] $[TARGET_DIR]/stamp -$[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[sources] + +//////////////////////////////// +//$[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] $[sources] + +///// Handles very long lists of egg files by echoing them ////// +///// out to a file then having egg-optchar read in the ////// +///// list from that file. Comment out four lines below ////// +///// and uncomment line above to revert to the old way. ////// + +#define sources_file eoc.tmp +$[TAB]echo -n $[sources] > $[sources_file] +$[TAB]egg-optchar $[OPTCHAR_OPTS] -d $[TARGET_DIR] -inf $[sources_file] +$[TAB]$[DEL_CMD] eoc.tmp +//////////////////////////////// #endif #end optchar_egg