Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions deps-packaging/pkg-build-deb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ echo "$SRCFILES" | while read srcfile opts; do
mkdir -p "$TD"
$UNCOMPRESS $srcfile | tar -C $TD -xf -
mv $TD/*/* $PKGDIR
# Also move dot files, but don't fail if there are none
mv $TD/*/.* $PKGDIR || true
# Also move dot files (.gitignore, etc.), skipping . and ..
for _dotfile in $TD/*/.*; do
case "${_dotfile##*/}" in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interestingly, how is this bash expression different than basename? Using basename might be more immediately understandable to more folks.

.|..) continue ;;
*) mv "$_dotfile" "$PKGDIR" ;;
esac
done
rm -r "$TD"
fi
done
Expand Down
Loading