Browse Source

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

Chris Brunner 16 years ago
parent
commit
f12b3b3ab3
1 changed files with 14 additions and 1 deletions
  1. 14 1
      dtool/pptempl/Template.models.pp

+ 14 - 1
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