03_build_deps.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. # testing with interdependent packages
  3. ./clean.sh
  4. ./01_certs.sh
  5. cp certdevsig ~/.config/syspkg/cert
  6. dir=`pwd`
  7. printf "" >repo.txt
  8. for i in `seq 1 12`
  9. do
  10. mkdir zip zip/bin zip/lib zip/inc
  11. printf "#!/bin/sh\nlorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temport" >zip/bin/test$i
  12. for j in `seq 1 128`
  13. do
  14. echo "$i $j lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temport" >zip/lib/libtest$i.$j.so
  15. echo "$i $j lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temport" >zip/inc/test$i.$j.h
  16. done
  17. cat example$i.json | sed "s/\@URL/${dir//\//\\\/}/" > meta$i.json
  18. if [ "$i" != "12" ]; then
  19. ../bin/syspkg build meta$i.json x86_64=zip
  20. else
  21. ../bin/syspkg build meta$i.json
  22. fi
  23. rm -rf zip
  24. echo file://$dir/meta$i.json >>repo.txt
  25. done
  26. ../bin/syspkg check meta1.json
  27. ../bin/syspkg check test1-0.0.1-x86_64.zip
  28. sha256sum test1-0.0.1-x86_64.zip
  29. cp certrepo ~/.config/syspkg/cert
  30. ../bin/syspkg build repo.txt index.html