create_stable_toolchain.sh 757 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. #
  3. # This script creates a new windows toolchain repository in OBS.
  4. # It only works for versions that do not yet exist.
  5. #
  6. # Make sure to adopt the variable stableversion.
  7. # Set the new stable version accordingly:
  8. stableversion=2.1
  9. targetproject="isv:ownCloud:toolchains:mingw:win32:${stableversion}"
  10. # Create the new repo
  11. # get the xml build description of the stable repo
  12. xml=`osc meta prj isv:ownCloud:toolchains:mingw:win32:stable`
  13. stable_xml="${xml/stable/$stableversion}"
  14. echo $stable_xml
  15. echo $stable_xml | osc meta prj -F - ${targetproject}
  16. # now copy all packages
  17. packs=`osc ls isv:ownCloud:toolchains:mingw:win32:stable`
  18. for pack in $packs
  19. do
  20. osc copypac isv:ownCloud:toolchains:mingw:win32:stable $pack $targetproject
  21. done