Debian Codegraph @

scripts/make-update

raw symbols SCIP
1 #!/bin/bash
2
3 if [ $# != 2 ]; then
4 echo "Usage: $0 last-release-date package-to-update"
5 echo " e.g. $0 20131030 sepolgen"
6 exit 1
7 fi
8
9 TAG=$1
10 PKG=$2
11
12 DEST=../update-$TAG
13 mkdir -p $DEST
14
15 if [ \! -d $PKG ]; then
16 echo "$PKG does not exist."
17 exit 1
18 fi
19
20 cd $PKG
21 VERS=`cat VERSION`
22 ARCHIVE=$PKG-$VERS.tar.gz
23 git tag $PKG-$VERS
24 git archive --format=tar --prefix=$PKG-$VERS/ $PKG-$VERS | gzip > ../$DEST/$ARCHIVE
25 cd ..
26
27 cd $DEST
28
29 echo "Copy $ARCHIVE from $DEST to the server and update its download link and checksum on the Releases wiki page:"
30
31 echo ""
32
33 echo "[http://userspace.selinuxproject.org/releases/$TAG/$ARCHIVE $ARCHIVE]"
34 echo ""
35 echo "`sha256sum $ARCHIVE`"
36 echo ""