Commit a4487752 authored by Aaron Wells's avatar Aaron Wells

Removing all the remaining gitorious references

parent 9730e887
Template: custom-site-mahara-langpacks/projdir Template: custom-site-mahara-langpacks/projdir
Type: string Type: string
Default: git://gitorious.org/mahara-lang Default: git@git.nzoss.org.nz:mahara/mahara-lang.git
Description: Project location Description: Project location
The git repository to get the langpacks from The git repository to get the langpacks from
......
...@@ -40,8 +40,8 @@ my $CLEAN = "${DATA}/new"; ...@@ -40,8 +40,8 @@ my $CLEAN = "${DATA}/new";
my $TARBALLS = "${DATA}/tarballs"; my $TARBALLS = "${DATA}/tarballs";
my $MAHARA = "${DATA}/mahara"; my $MAHARA = "${DATA}/mahara";
my $MAHARAREMOTE = 'git://gitorious.org/mahara/mahara.git'; my $MAHARAREMOTE = 'git@github.com:MaharaProject/mahara.git';
my $REPOLIST = 'http://gitorious.org/mahara/mahara-scripts/blobs/raw/master/mahara-langpacks/language-repos.txt'; my $REPOLIST = 'https://git.nzoss.org.nz/mahara/mahara-scripts/blob/master/mahara-langpacks/language-repos.txt';
mkpath $GITDIR; mkpath $GITDIR;
mkpath $DIRTY; mkpath $DIRTY;
...@@ -51,7 +51,7 @@ mkpath $TARBALLS; ...@@ -51,7 +51,7 @@ mkpath $TARBALLS;
print STDERR "Checking langpacks for updates: " . `date \"+%Y-%m-%d %H:%M:%S\"`; print STDERR "Checking langpacks for updates: " . `date \"+%Y-%m-%d %H:%M:%S\"`;
# A language repo list can be put in the $DATA dir for testing. If there's not one # A language repo list can be put in the $DATA dir for testing. If there's not one
# there, try to get an up-to-date one out of the gitorious mahara-scripts repo # there, try to get an up-to-date one out of the mahara-scripts repository
# (allows updates to the repo list without having to redeploy the package). # (allows updates to the repo list without having to redeploy the package).
my $repolist; my $repolist;
if ( -f "$SCRIPTS/language-repos.txt" ) { if ( -f "$SCRIPTS/language-repos.txt" ) {
...@@ -125,7 +125,7 @@ foreach my $branch (@branches) { ...@@ -125,7 +125,7 @@ foreach my $branch (@branches) {
foreach my $lang (@langkeys) { foreach my $lang (@langkeys) {
if ( ! defined $last->{$lang} ) { if ( ! defined $last->{$lang} ) {
$last->{$lang} = { repo => "git://gitorious.org/mahara-lang/$lang.git" }; $last->{$lang} = { repo => "git@git.nzoss.org.nz:mahara-lang/$lang.git" };
} }
if ( defined $langs{$lang}->{repo} ) { if ( defined $langs{$lang}->{repo} ) {
...@@ -146,8 +146,8 @@ foreach my $lang (@langkeys) { ...@@ -146,8 +146,8 @@ foreach my $lang (@langkeys) {
$repotype = 'launchpad'; $repotype = 'launchpad';
@branches = qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master); @branches = qw(1.7_STABLE 1.8_STABLE 1.9_STABLE 1.10_STABLE 15.04_STABLE master);
} }
elsif ( $remote =~ m{^git://gitorious\.org} ) { elsif ( $remote =~ m{^git@git\.nzoss\.org\.nz} ) {
$repotype = 'gitorious'; $repotype = 'git';
! -d "$gitlangdir" && system "git clone --quiet $remote $gitlangdir"; ! -d "$gitlangdir" && system "git clone --quiet $remote $gitlangdir";
chdir $gitlangdir; chdir $gitlangdir;
system "git fetch --quiet"; system "git fetch --quiet";
...@@ -204,7 +204,7 @@ foreach my $lang (@langkeys) { ...@@ -204,7 +204,7 @@ foreach my $lang (@langkeys) {
if ( "$remotecommit" ne "$lastruncommit" ) { if ( "$remotecommit" ne "$lastruncommit" ) {
print STDERR "Updating $lang $branch\n"; print STDERR "Updating $lang $branch\n";
if ( $repotype eq 'gitorious' ) { if ( $repotype eq 'git' ) {
my $branchcmd = 'git branch | grep "' . $branch . '$"'; my $branchcmd = 'git branch | grep "' . $branch . '$"';
my $branchexists = `$branchcmd`; my $branchexists = `$branchcmd`;
...@@ -250,7 +250,7 @@ foreach my $lang (@langkeys) { ...@@ -250,7 +250,7 @@ foreach my $lang (@langkeys) {
} }
} }
elsif ( $repotype eq 'gitorious' ) { elsif ( $repotype eq 'git' ) {
# .po is not available, so this is a php langpack # .po is not available, so this is a php langpack
...@@ -329,7 +329,7 @@ foreach my $lang (@langkeys) { ...@@ -329,7 +329,7 @@ foreach my $lang (@langkeys) {
chdir $currentdir; chdir $currentdir;
my $localcommit; my $localcommit;
if ( $repotype eq 'gitorious' ) { if ( $repotype eq 'git' ) {
$localcommit = `git log --pretty=format:\"%H %ai %an\" $branch | head -1`; $localcommit = `git log --pretty=format:\"%H %ai %an\" $branch | head -1`;
} }
else { else {
......
ar lp:mahara-lang ar lp:mahara-lang
ca lp:mahara-lang ca lp:mahara-lang
cs git://gitorious.org/mahara-lang/cs.git cs git@git.nzoss.org.nz:mahara-lang/cs.git
da lp:mahara-lang da lp:mahara-lang
de lp:mahara-lang de lp:mahara-lang
el lp:mahara-lang el lp:mahara-lang
en_GB lp:mahara-lang en_GB lp:mahara-lang
en_us git://gitorious.org/mahara-lang/en_us.git en_us git@git.nzoss.org.nz:mahara-lang/en_us.git
es lp:mahara-lang es lp:mahara-lang
eu lp:mahara-lang eu lp:mahara-lang
fi lp:mahara-lang fi lp:mahara-lang
......
...@@ -22,14 +22,14 @@ PHPSCRIPT=${HOME}/mahara-scripts/mahara-langpacks/php-po.php ...@@ -22,14 +22,14 @@ PHPSCRIPT=${HOME}/mahara-scripts/mahara-langpacks/php-po.php
[ ! -d ${GITDIR} ] && mkdir ${GITDIR} [ ! -d ${GITDIR} ] && mkdir ${GITDIR}
[ ! -d ${OUT} ] && mkdir ${OUT} [ ! -d ${OUT} ] && mkdir ${OUT}
mahararemote='git://gitorious.org/mahara/mahara.git' mahararemote='git@github.com:MaharaProject/mahara.git'
if [ ! -d ${MAHARA} ] ; then if [ ! -d ${MAHARA} ] ; then
cd ${WORK} cd ${WORK}
git clone ${mahararemote} ${MAHARA} git clone ${mahararemote} ${MAHARA}
fi fi
langremotebase='git://gitorious.org/mahara-lang' langremotebase='git@git.nzoss.org.nz:mahara-lang/'
langs="ca cs da de en_us es eu fi fr he it ja ko nl no_nb sl zh_tw" langs="ca cs da de en_us es eu fi fr he it ja ko nl no_nb sl zh_tw"
for lang in ${langs} ; do for lang in ${langs} ; do
......
...@@ -32,7 +32,7 @@ TEMP=${WORK}/temp ...@@ -32,7 +32,7 @@ TEMP=${WORK}/temp
[ ! -d ${TEMP} ] && mkdir ${TEMP} [ ! -d ${TEMP} ] && mkdir ${TEMP}
[ ! -d ${DOCROOT}/pot ] && mkdir ${DOCROOT}/pot [ ! -d ${DOCROOT}/pot ] && mkdir ${DOCROOT}/pot
#mahararemote='git://gitorious.org/mahara/mahara.git' #mahararemote='git@git.nzoss.org.nz/mahara/mahara.git'
mahararemote='git@github.com:MaharaProject/mahara.git' mahararemote='git@github.com:MaharaProject/mahara.git'
if [ ! -d ${GITDIR} ]; then if [ ! -d ${GITDIR} ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment