Debian Codegraph @

scripts/make-update

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