dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 061b17d0c0b561e6403aba8533ce95c56095c2e4
parent f0de053e02af67cc4979795d53c064869e9dcb86
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 17 Feb 2019 23:59:22 -0500

usr/local/bin/tball: tb: Tarball only files.

Diffstat:
usr/local/bin/tball | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr/local/bin/tball b/usr/local/bin/tball @@ -213,13 +213,15 @@ tb() { # Make ball name local BALL=$TMP_DIR/$BN.$SUFFIX.tar + local FLIST=$TMP_DIR/files # Make ball. echo 'Making '$BALL'.xz...' if [ ${SRC: -6} == 'tar.xz' ]; then cp $SRC $BALL # SRC is already a tar ball else - tar cvf $BALL $SRC && xz $BALL + find $SRC -type f > $FLIST \ + && tar cvf $BALL -I $FLIST && xz $BALL fi [[ $? == 1 ]] && clean_tmp $TMP_DIR && exit 1