File: make_archive.sh

package info (click to toggle)
weechat-scripts 20260123-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,980 kB
  • sloc: python: 46,585; perl: 25,176; ruby: 2,382; tcl: 400; lisp: 340; javascript: 138; makefile: 14; sh: 9
file content (13 lines) | stat: -rwxr-xr-x 206 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

TAR=tar
DIR=$(basename $(pwd))
SNAPSHOT="${1}"

rm -f "../${SNAPSHOT}"

${TAR} \
    --exclude ".git" \
    --exclude "debian" \
    --transform 's,^\.\./,,' \
    -czvf ../${SNAPSHOT} ../${DIR}