1 # .archives2gitrc - archives2git configuration file (sh snippet)
2 # The settings are overridden by command line switches.
5 FILTER='test x.gitignore = x"$file"'
8 #RENAME='echo "${file%-*}"'
9 RENAME='echo projectdir'
15 DATE='LC_ALL=C date -r "$arch"'
16 #DATE='LC_ALL=C date -r */NEWS'
17 #DATE='LC_ALL=C find . -not -path "./.git/*" -not -type d -exec date -r "{}" --rfc-3339=s \; |sort |tail -n 1'
20 TITLE='arch=${arch%/}; printf "%s\n" "${arch##*/}"'
22 # git-commit-tree env vars
23 #GIT_AUTHOR_NAME="Firstname Lastname"
24 #export GIT_AUTHOR_NAME
25 #GIT_AUTHOR_EMAIL=user@host
26 #export GIT_AUTHOR_EMAIL
27 #GIT_COMMITTER_NAME="Firstname Lastname"
28 #export GIT_COMMITTER_NAME
29 #GIT_COMMITTER_EMAIL=user@host
30 #export GIT_COMMITTER_EMAIL
36 #FILTERHEAD='--tree-filter
37 #mv */.* .; mv */* .; rmdir */'
38 FILTERHEAD='--tree-filter
39 mv projectdir/.* .; mv projectdir/* .'
42 # create an annotated tag
44 printf '%s (%s)\n' \"\$archname\" \"\$(LC_ALL=C date -d \"\$date\" +%Y/%m/%d)\""
45 #TAG='printf v; cat */VERSION'
50 #COMMAND='test -f "$arch" && pristine-tar commit "$arch" master || true'