export.py 741 B

123456789101112131415161718192021222324252627282930
  1. #@+leo-ver=5-thin
  2. #@+node:ville.20101127205006.2026: * @thin export.py
  3. # this utility script only works on my computer, fix as appropriate
  4. import sloppycode.shortcuts as sc
  5. import os
  6. #@+<< meat >>
  7. #@+node:ville.20101127205006.2027: ** << meat >>
  8. sc.ns.VER = "2.8.3"
  9. sc.ns.PACKAGE = 'com.substanceofcode.twimgo'
  10. sc.ns.OBSPRJ = sc.fpath('~/obs/home:vivainio/twimgo')
  11. sc.ns.TARB = sc.fpath("${OBSPRJ}/${PACKAGE}-${VER}.tar")
  12. sh = sc.shrun
  13. sc.verbose = 1
  14. with sc.chdir('..'):
  15. sh("git archive -o ${TARB} --prefix ${PACKAGE}-$VER/ HEAD" )
  16. sh("gzip ${TARB}")
  17. sh('tar tf ${TARB}.gz')
  18. sh('cp ${PACKAGE}.yaml ${PACKAGE}.spec ${OBSPRJ}')
  19. with sc.chdir('${OBSPRJ}'):
  20. sh('specify ${PACKAGE}.yaml')
  21. #@-<< meat >>
  22. #@-leo