File: hibernate-tarball.sh

package info (click to toggle)
hibernate 2.0+15+g88d54a8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 740 kB
  • ctags: 114
  • sloc: sh: 1,223; makefile: 17
file content (11 lines) | stat: -rw-r--r-- 327 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

[ -z "$1" ] && echo "Usage: $0 <version number>" && exit

FULLNAME=hibernate-script-$1

[ -e $FULLNAME -o -e $FULLNAME.tar.gz ] && echo "Already exists!" && exit

! cp -a tags/release-$1 $FULLNAME && echo "No such release?" && exit 1
fakeroot tar --exclude '.svn' -czvf $FULLNAME.tar.gz $FULLNAME
rm -rf "$FULLNAME"