[SCM] Lisaac scripts branch, master, updated. 67a26e042e5730f05d79b2d95d9287f3f2e2f507
Xavier Oswald
x.oswald at free.fr
Sun Oct 19 18:47:05 UTC 2008
The following commit has been merged in the master branch:
commit 67a26e042e5730f05d79b2d95d9287f3f2e2f507
Author: Xavier Oswald <x.oswald at free.fr>
Date: Sun Oct 19 20:46:25 2008 +0200
Add lisaac_git.sh script.
Features :
* Clone all lisaac gits.
* Update all lisaac gits.
Feel free to improve it!!! :)
diff --git a/git/lisaac_git.sh b/git/lisaac_git.sh
new file mode 100755
index 0000000..47378cd
--- /dev/null
+++ b/git/lisaac_git.sh
@@ -0,0 +1,170 @@
+#!/bin/bash
+#///////////////////////////////////////////////////////////////////////////////
+#// GIT - Lisaac Script //
+#// //
+#// LSIIT - ULP - CNRS - INRIA - FRANCE //
+#// //
+#// This program is free software: you can redistribute it and/or modify //
+#// it under the terms of the GNU General Public License as published by //
+#// the Free Software Foundation, either version 3 of the License, or //
+#// (at your option) any later version. //
+#// //
+#// This program is distributed in the hope that it will be useful, //
+#// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+#// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+#// GNU General Public License for more details. //
+#// //
+#// You should have received a copy of the GNU General Public License //
+#// along with this program. If not, see <http://www.gnu.org/licenses/>. //
+#// //
+#// http://isaacproject.u-strasbg.fr/ //
+#// //
+#// By Xavier Oswald <x.oswald at free.fr> //
+#// Bug Report: Xavier Oswald <x.oswald at free.fr> //
+#///////////////////////////////////////////////////////////////////////////////
+
+# TODO
+# * Add parsing argument for the user.
+# * Use a STRING with all repositories and parse it.
+
+
+# Please replace this username with yours
+ALIOTH_USER_NAME="xaviero-guest"
+
+function git_pull {
+ git pull
+}
+
+function print_help {
+ echo "----------------------------------------------------------------"
+ echo "-- Git - Lisaac Script - V.0.1 --"
+ echo "-- LSIIT - ULP - CNRS - FRANCE --"
+ echo "-- Xavier Oswald - <x.oswald at free.fr> --"
+ echo "-- http://www.IsaacOS.com --"
+ echo "----------------------------------------------------------------"
+ echo "Usage: "
+ echo " lisaac_git [Options] "
+ echo "Options: "
+ echo " -h : Print the help commands "
+ echo " -c : Do the clone for all git repositories "
+ echo " -u : Update all git repositories "
+ echo
+ echo "Bug report: "
+ echo " mail to : x.oswald at free.fr' "
+ echo "----------------------------------------------------------------"
+}
+
+case $1 in
+ -h)
+ print_help ;;
+ -c)
+ echo
+ echo "-- Creating the Lisaac directory... --"
+ mkdir lisaac/
+ cd lisaac/
+ echo "-- Cloning main Lisaac repositories... --"
+ echo
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/benchmarks.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/compiler.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/documentation.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/scripts.git
+ echo
+ echo "-- Creating the Lisaac programs directory... --"
+ echo
+ mkdir programs/
+ cd programs/
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/programs/action-simulation.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/programs/java2lisaac.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/programs/sanglier.git
+ echo
+ echo "-- Creating the Lisaac libraries directory... --"
+ echo
+ cd ..
+ mkdir libraries/
+ cd libraries/
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/expat-binding.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/lua-binding.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/opengl-binding.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/sdl-binding.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/math.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/freetype.git
+ git clone ssh://$ALIOTH_USER_NAME@git.debian.org/git/lisaac/libraries/examples.git
+ cd ..
+ echo
+ echo "-- All Lisaac GIT cloning done... --"
+ echo
+ ;;
+ -u)
+ echo
+ echo "-- Updating all Lisaac GIT... --"
+ echo
+ cd lisaac/
+ cd benchmarks/
+ echo "Git Lisaac benchmarks:"
+ git_pull
+ cd ..
+ cd compiler/
+ echo "Git Lisaac compiler:"
+ git_pull
+ cd ..
+ cd documentation/
+ echo "Git Lisaac documentation:"
+ git_pull
+ cd ..
+ cd scripts/
+ echo "Git Lisaac scripts:"
+ git_pull
+ cd ..
+
+ cd programs/
+ cd action-simulation/
+ echo "Git Lisaac programs/action-simulation:"
+ git_pull
+ cd ..
+ cd java2lisaac/
+ echo "Git Lisaac programs/java2lisaac:"
+ git_pull
+ cd ..
+ cd sanglier/
+ echo "Git Lisaac programs/sanglier:"
+ git_pull
+ cd ..
+ cd ..
+
+ cd libraries/
+ cd expat-binding/
+ echo "Git Lisaac libraries/expat-binding:"
+ git_pull
+ cd ..
+ cd lua-binding/
+ echo "Git Lisaac libraries/lua-binding:"
+ git_pull
+ cd ..
+ cd opengl-binding/
+ echo "Git Lisaac libraries/opengl-binding:"
+ git_pull
+ cd ..
+ cd sdl-binding/
+ echo "Git Lisaac libraries/sdl-binding:"
+ git_pull
+ cd ..
+ cd math/
+ echo "Git Lisaac libraries/math:"
+ git_pull
+ cd ..
+ cd freetype/
+ echo "Git Lisaac libraries/freetype:"
+ git_pull
+ cd ..
+ cd examples/
+ echo "Git Lisaac libraries/examples:"
+ git_pull
+ cd ..
+ cd ..
+ echo
+ echo "-- Updating all Lisaac GIT done... --"
+ echo
+ ;;
+ *)
+ print_help;;
+esac
--
Lisaac scripts
More information about the Lisaac-commits
mailing list