File: make_archive.sh

package info (click to toggle)
weechat-scripts 20250416-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,892 kB
  • sloc: python: 46,251; perl: 24,316; ruby: 2,382; tcl: 400; lisp: 338; 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}