File: make_archive.sh

package info (click to toggle)
weechat-scripts 20100422-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,184 kB
  • ctags: 1,634
  • sloc: python: 8,545; perl: 8,472; ruby: 147; tcl: 137; sh: 8; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (3)
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} \
    -czvf ../${DIR_ROOT}.orig.tar.gz ../${DIR} \
    --exclude=".git" \
    --exclude "debian" \
    --transform 's,^\.\./,,'