comparison .bashrc @ 296:ee3c1b65d6d1

random fixes
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 11 May 2013 06:50:40 -0700
parents e2564dd51334
children 266d6b337373
comparison
equal deleted inserted replaced
295:e2564dd51334 296:ee3c1b65d6d1
258 if [ -e "${i}/setup.py" ] 258 if [ -e "${i}/setup.py" ]
259 then 259 then
260 cd "${i}" 260 cd "${i}"
261 python setup.py develop 261 python setup.py develop
262 cd .. 262 cd ..
263 fi
264 done
265 }
266
267 recreate-venv() {
268 # recreate a virtualenv
269 VIRTUALENV="virtualenv.py"
270 for i in $@
271 do
272 ${VIRTUALENV} --clear "${i}"
273
274 SRCDIR="${i}"/src
275 if [ -d "${SRCDIR}" ]
276 then
277 . "${i}/bin/activate"
278 OLDPWD=${PWD}
279 cd "${SRCDIR}"
280 for j in *
281 do
282 if [ -e "${j}"/setup.py ]
283 then
284 cd "${j}"
285 python setup.py develop
286 cd ..
287 fi
288 done
289 cd "${OLDPWD}"
263 fi 290 fi
264 done 291 done
265 } 292 }
266 293
267 ### functions for version control systems 294 ### functions for version control systems