archives2git: split or rewrap long lines
[archives2git.git] / archives2gitrc
blob9039d06a581743a7b1ad7c49f60ca8e33ce8f411
1 # .archives2gitrc - archives2git configuration file (sh snippet)
2 # The settings are overridden by command line switches.
4 # --unpack
5 #UNPACK='aunpack -X "$TMPDIR" "$arch"'
7 # --strip-ext
8 STRIP_EXT='strip_extension "$arch"'
10 # --keep-filter
11 FILTER='test x.gitignore = x"$file"'
13 # --rename
14 #RENAME='echo "${file%-*}"'
15 RENAME='echo projectdir'
17 # --git-addarg
18 ADDARGS="-f"
20 # --date
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'
25 # --title
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
38 # --git-ciarg
39 CIARGS=""
41 # --gitfilter
42 #FILTERHEAD='--tree-filter
43 #mv */.* .; mv */* .; rmdir */'
44 FILTERHEAD='--tree-filter
45 mv projectdir/.* .; mv projectdir/* .'
47 # --tag, --tagname
48 # create an annotated tag
49 TAGDEF="$TAGDEF
50   printf '%s (%s)\n' \"\$archname\" \"\$(LC_ALL=C date -d \"\$date\" +%Y/%m/%d)\""
51 #TAG='printf v; cat */VERSION'
52 # tag by default
53 #TAG=$TAGDEF
55 # --command
56 #COMMAND='test -f "$arch" && pristine-tar commit "$arch" master || true'