void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

changed_templates.sh (432B)


      1#!/bin/sh
      2#
      3# changed_templates.sh
      4
      5if command -v chroot-git >/dev/null 2>&1; then
      6	GIT_CMD=$(command -v chroot-git)
      7elif command -v git >/dev/null 2>&1; then
      8	GIT_CMD=$(command -v git)
      9fi
     10
     11/bin/echo -e '\x1b[32mChanged packages:\x1b[0m'
     12$GIT_CMD diff-tree -r --no-renames --name-only --diff-filter=AM \
     13	"$(git merge-base FETCH_HEAD HEAD)" HEAD \
     14	-- 'srcpkgs/*/template' |
     15	cut -d/ -f 2 |
     16	tee /tmp/templates |
     17	sed "s/^/  /" >&2