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