Commit Diff
Diff:
78eec18021de7b617e1740f56902095ddea024e4
90fd1108e49c1bc0931264f5855890b2f709304d
Commit:
90fd1108e49c1bc0931264f5855890b2f709304d
Tree:
397815f7ffabae7e56ac0811fc97c9bdd7f09e60
Author:
Fred. Galusik <f@galusik.xyz>
Committer:
Fred. Galusik <f@galusik.xyz>
Date:
Sat Jun 11 13:34:47 2016 UTC
Message:
Merge branch 'master' into 'master' -p to update port tree Tout petit ajout pour synchroniser les ports avec current. T'en fais ce que tu veux, moi j'en avais marre de devoir rechercher la commande cvs à chaque fois ;) See merge request !1
blob - d95e0997fb02efd43e0dd23b611c662c1d8266f8
blob + cab24af979c08fdf40367b40e19b650ccc1c541e
--- snaps
+++ snaps
@@ -71,6 +71,7 @@ usage() {
echo "Usage: ${0##*/} [-gGlh]"
echo " -g fetch and check bsd.rd from \$MIRROR"
echo " -G fetch, check and install bsd.rd from \$MIRROR"
+ echo " -p update port tree to current"
echo " -l list date and \$MIRROR of 3 last bsd.rd"
echo " -h print this help and exit"
echo ""
@@ -181,6 +182,14 @@ s_move() {
esac
}
+s_upports() {
+ echo "\n=== UPDATE PORTS TREE ==="
+ cd /usr/ports || exit 1
+ cvs up -Pd || exit 1
+ echo "==> New port tree fetched"
+ echo ""
+}
+
##
## Run
##
@@ -196,6 +205,9 @@ case $1 in
s_check
s_move
;;
+ -p)
+ s_upports
+ ;;
-l)
get_log
;;
Frédéric Galusik