-
Notifications
You must be signed in to change notification settings - Fork 1
/
update.sh
37 lines (35 loc) · 1.01 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
rm ./Packages
dpkg-scanpackages -m . /dev/null >Packages
#./dpkg-scanpackages debs / > Packages
rm ./Packages.bz2
bzip2 -fks Packages
# #!/bin/sh
#
# all: Release
# .PHONY: Packages Packages.bz2 Release
#
# Release: Packages Packages.bz2
# $(eval SIZE1 := $(shell wc -c Packages | sed 's/[[:space:]].*//'))
# $(eval SIZE2 := $(shell wc -c Packages.bz2 | sed 's/[[:space:]].*//'))
# @cp Release_ $@
#
# @echo MD5Sum: >> $@
# @echo " `md5sum Packages | sed "s/ / $(SIZE1) /"`" >> $@
# @echo " `md5sum Packages.bz2 | sed "s/ / $(SIZE2) /"`" >> $@
#
# @echo SHA1: >> $@
# @echo " `sha1sum Packages | sed "s/ / $(SIZE1) /"`" >> $@
# @echo " `sha1sum Packages.bz2 | sed "s/ / $(SIZE2) /"`" >> $@
#
# @echo SHA256: >> $@
# @echo " `sha256sum Packages | sed "s/ / $(SIZE1) /"`" >> $@
# @echo " `sha256sum Packages.bz2 | sed "s/ / $(SIZE2) /"`" >> $@
#
# Packages:
# @./dpkg-scanpackages -m . /dev/null > Packages
#
# Packages.bz2: Packages
# @bzip2 -fk $^
#
# clean:
# @rm -rf Packages Packages.bz2 Release &> /dev/null