File: make_archive.sh

package info (click to toggle)
weechat-scripts 20221022-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,688 kB
  • sloc: python: 42,639; perl: 24,814; ruby: 2,261; lisp: 338; tcl: 244; javascript: 138; makefile: 14; sh: 9
file content (13 lines) | stat: -rwxr-xr-x 206 bytes parent folder | download | duplicates (3)
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}