BASH   77

Movin2Testing sh

Guest on 17th August 2022 02:19:52 PM

  1. #!/bin/bash
  2. echo "Please enter the name of the package you wish to move, capitalization matters"
  3. read name1
  4. name=${name1}
  5. echo Looking for ${name}
  6.  
  7. ##
  8. whereat=`find  ~/Repo/veclinux-7.0/packages/ -name "$name-*t?z"`
  9. echo "testing results"
  10. if [ -n "${whereat}" ]; then
  11. echo Found ${name} at ${whereat}
  12. intesting=`echo ${whereat} | sed 's,packages,testing,g'`
  13. # echo ${intesting}
  14. path=`echo ${intesting} | sed 's,'"${name}"'.*,,g'`
  15. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86/${name}-*t?z ${path}
  16. echo "${name} moved to  ${path}"
  17. whereat=""
  18. else
  19. echo "Previous version not found in packages, exiting"
  20. fi
  21.  
  22. echo Looking for ${name} in 64bit repo
  23.  
  24. whereat=`find  ~/Repo/VL64-7.0/packages/ -name "$name-*t?z"`
  25. echo "testing results"
  26. if [ -n "${whereat}" ]; then
  27. echo Found ${name} at ${whereat}
  28. intesting=`echo ${whereat} | sed 's,packages,testing,g'`
  29. #echo ${intesting}
  30. path=`echo ${intesting} | sed 's,'"${name}"'.*,,g'`
  31. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86_64/${name}-*t?z ${path}
  32. echo "${name} moved to  ${path}"
  33. exit
  34. else
  35. echo "Previous version not found in packages, exiting"
  36. fi
  37.  
  38.  
  39.  
  40.  
  41.  
  42. whereat=`find  ~/Repo/veclinux-7.0/extra/ -name "$name-*t?z"`
  43. echo "testing results"
  44. if [ -n "${whereat}" ]; then
  45. echo Found ${name} at ${whereat}
  46. intesting=`echo ${whereat} | sed 's,extra,testing,g'`
  47. # echo ${intesting}
  48. path=`echo ${intesting} | sed 's,'"${name}"'.*,,g'`
  49. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86/${name}-*t?z ${path}
  50. echo "${name} moved to  ${path}"
  51. else
  52. echo "Previous version not found in extra or packaging.  Where would you like to move this."
  53. echo "a ap d games kde kdei kde-old kdexap l mate n xap xfce"
  54. read location
  55. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86/${name}-*t?z ~/Repo/veclinux-7.0/testing/$location/
  56.  
  57.  
  58. fi
  59.  
  60. echo Looking for ${name} in 64bit repo
  61.  
  62. whereat=`find  ~/Repo/VL64-7.0/extra/ -name "$name-*t?z"`
  63. echo "testing results"
  64. if [ -n "${whereat}" ]; then
  65. echo Found ${name} at ${whereat}
  66. intesting=`echo ${whereat} | sed 's,extra,testing,g'`
  67. #echo ${intesting}
  68. path=`echo ${intesting} | sed 's,'"${name}"'.*,,g'`
  69. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86_64/${name}-*t?z ${path}
  70. echo "${name} moved to  ${path}"
  71. else
  72. echo "Previous version not found in extra or packaging.  Where would you like to move this."
  73. echo "a ap d games kde kdei kde-old kdexap l mate n xap xfce"
  74. echo "MOVING TO $location in 64bit repo"
  75. cp ~/Upload/vectorcontrib/build-thrower/veclinux-7.0/x86_64/${name}-*t?z ~/Repo/VL64-7.0/testing/$location
  76.  
  77. fi

Raw Paste


Login or Register to edit or fork this paste. It's free.