logo

widrop

[mirror] WiDrop distribution, now defunct git clone https://hacktivis.me/git/mirror/widrop.git

build.sh (1264B)


  1. #!/bin/sh
  2. echo [Widrop] --------------------------
  3. echo [Widrop] building Packages
  4. echo [Widrop] --------------------------
  5. for x in $(cat list); do
  6. dpkg -b $x dist/$x.deb;
  7. done;
  8. echo [Widrop] -------------------------------
  9. echo [Widrop] Generating Packages file
  10. echo [Widrop] -------------------------------
  11. cd dist;
  12. dpkg-scanpackages . /dev/null > Packages;
  13. gzip -c Packages > Packages.gz
  14. cd ..
  15. echo [Widrop] -------------------------------
  16. echo [Widrop] Generating Release file
  17. echo [Widrop] -------------------------------
  18. cat > dist/Release <<EOF
  19. Archive: stable
  20. Component: main, contrib, non-free
  21. Origin: Widrop
  22. Label: Widrop
  23. Architecture: all
  24. MD5Sum:
  25. EOF
  26. echo [Widrop] -------------------------------------
  27. echo [Widrop] Adding md5sums to Release file
  28. echo [Widrop] -------------------------------------
  29. cd dist;
  30. for x in Packages Release; do
  31. echo " \
  32. $(md5sum $x | awk '{ print $1}') \
  33. $(du -sb $x)" \
  34. >> Release
  35. done;
  36. cd ..
  37. echo [Widrop] -------------------------------
  38. echo [Widrop] Done !
  39. echo [Widrop] -------------------------------
  40. echo [Widrop] -------------------------------
  41. echo [Widrop] Please note forgot to update
  42. echo [Widrop] Signature using src/gpg/sign.sh
  43. echo [Widrop] -------------------------------