Changeset 12697 for trunk/ippTasks/pantasks.pro
- Timestamp:
- Mar 30, 2007, 1:09:39 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pantasks.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r12241 r12697 155 155 end 156 156 157 macro set_standard_args 158 # XXX be careful: $ARGS cannot be resolved as "" 159 # XXX currently, sprintf is the only good way of creating 160 # an empty variable 161 if ($?WORKDIR == 0) 162 echo error in pantasks: WORKDIR not set 157 macro add_standard_args 158 if ($0 != 2) 159 echo "Must pass in the command of interest, and this function will supplement" 163 160 stop 164 161 end 165 if ($?DBNAME == 0) 166 echo error in pantasks: DBNAME not set 167 stop 168 end 169 if ("$DBNAME" != "DEFAULT") 170 $ARGS = --workdir $WORKDIR --dbname $DBNAME 171 else 172 $ARGS = --workdir $WORKDIR 162 163 local command 164 $command = $$1 165 166 if ($?DBNAME && "$DBNAME" != "DEFAULT") 167 $command = $command --dbname $DBNAME 173 168 end 174 169 if ($?NOOP != 0) 175 $ARGS = $ARGS --no-op 176 end 177 end 170 $command = $command --no-op 171 end 172 $$1 = $command 173 end 174 178 175 179 176 macro process_exit
Note:
See TracChangeset
for help on using the changeset viewer.
