Skip to content

Commit

Permalink
Add SPDX-License-Identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
vaeth committed Jul 26, 2020
1 parent 54aa141 commit 4c4de88
Show file tree
Hide file tree
Showing 25 changed files with 51 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ A collection of POSIX shell scripts to invoke archiver programs

(s)tar/gzip/bzip2/xz/zip/7z/lzma/lrzip/arj/zoo/brotli/zopfli/zstd

Author: Martin Väth <vaeth@mvath.de>
Author: Martin Väth <martin at mvath.de>

This project is under the BSD license 2.0 (“3-clause BSD license”).
SPDX-License-Identifier: BSD-3-Clause

These are some POSIX shell scripts which form an interface to
various archiver programs like
Expand Down
3 changes: 2 additions & 1 deletion archwrap_alias
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
alias ud='u -d'
alias uv='u -l'
alias tard='tgzd -t'
Expand Down
2 changes: 2 additions & 0 deletions bin/2pd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
Echo() {
printf '%s\n' "$*"
Expand Down
2 changes: 2 additions & 0 deletions bin/7zbest
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
exec 7za a -si -so -- ${1+"$@"}
2 changes: 2 additions & 0 deletions bin/archwrap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
# This script is part of Martin V\"ath's archwrap project.
# It provides shell functions for scripts like "tgzd" "zipd" "u"
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause

YesNo() {
case ${1:-n} in
Expand Down
2 changes: 2 additions & 0 deletions bin/brotlibest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh
set -f
Expand Down
4 changes: 3 additions & 1 deletion bin/brotlicat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
brotli -dcf ${1+"$@"}
exec brotli -dcf ${1+"$@"}
2 changes: 2 additions & 0 deletions bin/bzipbest
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
exec bzip2 -9 ${1+"$@"}
2 changes: 2 additions & 0 deletions bin/gzipbest
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
exec gzip -9 ${1+"$@"}
2 changes: 2 additions & 0 deletions bin/lz4best
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
exec lz4 -9 ${1+"$@"}
2 changes: 2 additions & 0 deletions bin/lz4less
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
lz4cat "$@" | less
2 changes: 2 additions & 0 deletions bin/pd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh

Expand Down
2 changes: 2 additions & 0 deletions bin/sshcat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh

Expand Down
2 changes: 2 additions & 0 deletions bin/tgzd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh

Expand Down
2 changes: 2 additions & 0 deletions bin/u
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh

Expand Down
2 changes: 2 additions & 0 deletions bin/unzstdbest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
set -f

Expand Down
2 changes: 2 additions & 0 deletions bin/xzbest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh
set -f
Expand Down
2 changes: 2 additions & 0 deletions bin/zipd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh

Expand Down
2 changes: 2 additions & 0 deletions bin/zopflibest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
which=`command -v which` || which=
if [ x"$which" = x'which' ]
Expand Down
2 changes: 2 additions & 0 deletions bin/zstdbest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
# This script is part of Martin V\"ath's archwrap project.
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
set -u
. archwrap.sh
set -f
Expand Down
2 changes: 2 additions & 0 deletions zsh/_2pd
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#compdef 2pd 2ppd
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
_arguments -S -A '-*' : \
'(* -)'{'--help','--Help','-h','-\\?'}'[help]' \
'-tmp[Use current directory instead of /tmp for tempdirectory]' \
Expand Down
2 changes: 2 additions & 0 deletions zsh/_pd
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#compdef pd ppd
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
_arguments -s -S -A '-*' : \
'(* -)'{'-h','-H'}'[help]' \
'-X[use long appendix (.tar.gz instead of .tgz etc)]' \
Expand Down
2 changes: 2 additions & 0 deletions zsh/_tgzd
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#compdef 7zd brd bzipd gzipd lrzd lz4d lzmad t7zd tard tbrd tbzd tgzd tlrd tlzd tlz4d txzd tzsd xzd zstdd
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
_arguments -s -S -A '-*' : \
'(* -)'{'-h','-H'}'[help]' \
'-R+[store output in PATH; use e.g. -R - for piping to stdout]:output-path:_files -/' \
Expand Down
2 changes: 2 additions & 0 deletions zsh/_u
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#compdef u ud uv
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
_arguments -s -S -A '-*' : \
'(* -)'{'-h','-H'}'[help]' \
'-d[uncompress into new directory ./ARCHIVE instead of .]' \
Expand Down
2 changes: 2 additions & 0 deletions zsh/_zipd
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#compdef zipd
# (C) Martin V\"ath <martin at mvath.de>
# SPDX-License-Identifier: BSD-3-Clause
_arguments -s -S -A '-*' : \
'(* -)'{'-h','-H'}'[help]' \
'-F[Symbolic links are stored as such (default)]' \
Expand Down

0 comments on commit 4c4de88

Please sign in to comment.