Advertisement
Guest User

create repo script

a guest
Nov 1st, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # a script to updates the archive files
  4. #
  5. COMPRESS=gzip # compressor (gzip, bzip2, ?)
  6. COMPRESSOPTS=-c # whichever opts cause stdin->compress->stdout (usually -c)
  7. COMPRESSEXT=gz # whichever extension matches your compressor (gz,bz2,?)
  8.  
  9. ( apt-ftparchive packages . > Packages && \
  10. "${COMPRESS}" "${COMPRESSOPTS}" < Packages > "Packages.${COMPRESSEXT}" \
  11. && \
  12. apt-ftparchive contents . > Contents && \
  13. "${COMPRESS}" "${COMPRESSOPTS}" < Contents > "Contents.${COMPRESSEXT}" ) \
  14. && \
  15. apt-ftparchive release . > Release && \
  16. "${COMPRESS}" "${COMPRESSOPTS}" < Release > "Release.${COMPRESSEXT}"
  17.  
  18. gpg --armor --detach-sign --output Release.gpg Release
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement