Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # a script to updates the archive files
- #
- COMPRESS=gzip # compressor (gzip, bzip2, ?)
- COMPRESSOPTS=-c # whichever opts cause stdin->compress->stdout (usually -c)
- COMPRESSEXT=gz # whichever extension matches your compressor (gz,bz2,?)
- ( apt-ftparchive packages . > Packages && \
- "${COMPRESS}" "${COMPRESSOPTS}" < Packages > "Packages.${COMPRESSEXT}" \
- && \
- apt-ftparchive contents . > Contents && \
- "${COMPRESS}" "${COMPRESSOPTS}" < Contents > "Contents.${COMPRESSEXT}" ) \
- && \
- apt-ftparchive release . > Release && \
- "${COMPRESS}" "${COMPRESSOPTS}" < Release > "Release.${COMPRESSEXT}"
- gpg --armor --detach-sign --output Release.gpg Release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement