File: make_archive.sh

package info (click to toggle)
weechat-scripts 20161006-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,504 kB
  • ctags: 6,245
  • sloc: python: 37,508; perl: 27,405; ruby: 1,931; tcl: 226; lisp: 56; sh: 8; makefile: 7
file content (11 lines) | stat: -rwxr-xr-x 247 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

TAR=tar
DIR=$(basename $(pwd))
DIR_ROOT=$(echo ${DIR} | sed 's/weechat-scripts-/weechat-scripts_/')

${TAR} \
    --exclude ".git" \
    --exclude "debian" \
    --transform 's,^\.\./,,' \
    -czvf ../${DIR_ROOT}.orig.tar.gz ../${DIR}