File: make_archive.sh

package info (click to toggle)
weechat-scripts 20140928-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,064 kB
  • ctags: 5,521
  • sloc: python: 31,594; perl: 26,797; ruby: 1,648; tcl: 224; sh: 8; makefile: 7
file content (11 lines) | stat: -rwxr-xr-x 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,^\.\./,,'