Project

General

Profile

« Previous | Next » 

Revision 8930

lib/util.sh: wrapper functions of external commands: use new self alias

View differences:

lib/util.sh
156 156

  
157 157
sed_ere_flag="$(test "$(uname)" = Darwin && echo E || echo r)"
158 158

  
159
sed () { extern sed -"$sed_ere_flag" "$@";}
159
sed () { self -"$sed_ere_flag" "$@";}
160 160

  
161 161
#### vars
162 162

  
......
213 213
make ()
214 214
{
215 215
	echo_func
216
	stdout2stderr=1 extern make --directory="$top_dir" "$@"
216
	stdout2stderr=1 self --directory="$top_dir" "$@"
217 217
}
218 218

  
219 219
if false; then ## usage:
......
246 246

  
247 247
zip ()
248 248
{
249
	stdout2stderr=1 try extern zip "$@"
249
	stdout2stderr=1 try self "$@"
250 250
	ignore 12 # "zip has nothing to do" (`man zip`)
251 251
	end_try
252 252
}
253 253

  
254
unzip () { stdout2stderr=1 extern unzip "$@"; }
254
unzip () { stdout2stderr=1 self "$@"; }
255 255

  
256 256
set_inv force
257 257
alias zip_newer="zip${no_force:+ -u}"

Also available in: Unified diff