MAKE_PACKAGE="make-3.82"
MAN_DB="man-db-2.6.2"
MANPAGES="man-pages-3.41"
+MERCURIAL="mercurial-2.5.4"
MFOUR="m4-1.4.16"
MIDORI="midori-0.4.6"
MILTER_GREYLIST="milter-greylist-4.0"
#!/bin/bash
+VCS_SUPPORTED="GIT, Subversion or Mercurial"
+
print_usage()
{
- echo "$(basename $0) -- diff for version control (svn or git) with color output."
+ echo "$(basename $0) -- diff for version control (${VCS_SUPPORTED}) with color output."
echo "Usage: $(basename $0) [OPTIONS...]"
}
git diff "$@"
elif svn diff 1> /dev/null 2>&1; then
svn diff --diff-cmd colordiff -x "-u -w -p" "$@" | less -RFX
+elif hg status 1> /dev/null 2>&1; then
+ hg diff "$@"
else
- echo "Not a GIT or Subversion repository"
+ echo "Not a ${VCS_SUPPORTED} repository"
exit 1
fi
#!/bin/bash
+VCS_SUPPORTED="GIT, Subversion or Mercurial"
+
print_usage()
{
- echo "$(basename $0) -- log for version control (svn or git)."
+ echo "$(basename $0) -- log for version control (${VCS_SUPPORTED})."
echo "Usage: $(basename $0) [OPTIONS...]"
}
# Colore en rouge les infos de la révision
svn log "$@" | sed -e "s/^-\+$/${SVN_LOG_SEPARATION_COLOR}\0${NORMAL}/" \
-e "s/^r[0-9]\+.\+$/${SVN_LOG_REV_INFO_COLOR}\0${NORMAL}/" | less -RFX
+elif hg status 1> /dev/null 2>&1; then
+ hg glog "$@"
else
- echo "Not a GIT or Subversion repository"
+ echo "Not a ${VCS_SUPPORTED} repository"
exit 1
fi
#!/bin/bash
+VCS_SUPPORTED="GIT, Subversion or Mercurial"
+
print_usage()
{
- echo "$(basename $0) -- status for version control (svn or git)."
+ echo "$(basename $0) -- status for version control (${VCS_SUPPORTED})."
echo "Usage: $(basename $0) [OPTIONS...]"
}
-e "s/^A.*$/${SVN_ST_ADDED_COLOR}\0${NORMAL}/" \
-e "s/^M.*$/${SVN_ST_MODIFIED_COLOR}\0${NORMAL}/" \
-e "s/^D.*$/${SVN_ST_DELETED_COLOR}\0${NORMAL}/"
+elif hg status 1> /dev/null 2>&1; then
+ hg status "$@"
else
- echo "Not a GIT or Subversion repository"
+ echo "Not a ${VCS_SUPPORTED} repository"
exit 1
fi
ipkg ${INTLTOOL}
ipkg -m acnb ${GIT} "--libexecdir=/usr/lib --with-gitconfig=/etc/gitconfig"
+ipkg -m noac ${MERCURIAL}
ipkg ${DIALOG}
--- /dev/null
+[extensions]
+color =
+rebase =
+
+# extension do display log in graphical way
+graphlog =
+pager =
+
+# extension for paging mercurial output
+[pager]
+pager = LESS='FSRX' less
+attend = annotate, cat, diff, export, log, glog
+
+[alias]
+# Give log output similar to git
+glog = log --template '\033[0;33mcommit {node} [r{rev}]\n\033[0mAuthor: {author}\nDate: {date|rfc822date}\n\n\t{desc|strip|fill68|tabindent}\n\n'
fpkg -e "tar.gz" ${GIT} "http://git-core.googlecode.com/files"
fpkg -e "tar.gz" "git-manpages-$(get_pkg_ver ${GIT})" \
"http://git-core.googlecode.com/files"
+fpkg -e "tar.gz" ${MERCURIAL} "http://mercurial.selenic.com/release"
fpkg -e "tar.gz" ${DIALOG} "ftp://ftp.us.debian.org/debian/pool/main/d/dialog"
--- /dev/null
+#!/bin/bash
+
+hvbuild()
+{
+ cd ${LFS_TMP}/${PACKAGE}
+
+ make build
+ make PREFIX=/usr install-bin
+}
+
+hvbuild_post()
+{
+ install -dv /etc/mercurial
+ install -v -m644 ${SCRDIR}/misc/hgrc /etc/mercurial
+}