Merge branch 'multisourcessupport'

This commit is contained in:
MatMoul 2015-08-20 19:55:43 +02:00
commit a8eade7830
4 changed files with 106 additions and 8 deletions

View file

@ -1,6 +1,16 @@
Current Version : Current Version :
----------------- -----------------
Builder :
- Updated build process.
Archdi :
- Add menu to select source server.
Version : 2015.08.20.19.55.41 :
-------------------------------
Licence : Licence :
- GPL-3.0 -> LGPL-3.0. - GPL-3.0 -> LGPL-3.0.
@ -12,8 +22,7 @@ Version : 2015.07.19.04.55.32 :
------------------------------- -------------------------------
Archdi : Archdi :
- Update URL to github, - Update URL to github.
Version : 2015.06.28.20.37.40 : Version : 2015.06.28.20.37.40 :

38
archfi
View file

@ -2,18 +2,20 @@
# Arch Linux Fast Install (archfi) # Arch Linux Fast Install (archfi)
# -------------------------------- # --------------------------------
# author : https://github.com/MatMoul # author : MatMoul
# https://github.com/MatMoul
# http://sourceforge.net/u/matmoul
# project : https://github.com/MatMoul/archfi # project : https://github.com/MatMoul/archfi
# http://sourceforge.net/projects/archfi/
# license : LGPL-3.0 (http://opensource.org/licenses/lgpl-3.0.html) # license : LGPL-3.0 (http://opensource.org/licenses/lgpl-3.0.html)
# #
# referance : https://wiki.archlinux.org/index.php/Installation_guide # referance : https://wiki.archlinux.org/index.php/Installation_guide
apptitle="Arch Linux Fast Install (archfi) - Version: 2015.07.19.04.55.32 (GPLv3)" apptitle="Arch Linux Fast Install (archfi) - Version: 2015.08.20.19.55.41 (GPLv3)"
baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master
# -------------------------------------------------------- # --------------------------------------------------------
mainmenu(){ mainmenu(){
if [ "$1" = "" ]; then if [ "$1" = "" ]; then
@ -985,10 +987,30 @@ installarchdi(){
fi fi
fi fi
} }
archdidownload(){
options=()
options+=("sourceforge.net" "recommended")
options+=("github.com" "")
sel=$(whiptail --backtitle "$apptitle" --title "$txtselectserver" --menu "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ "$?" = "0" ]; then
case $sel in
"sourceforge.net")
archdiurl=archdi.sourceforge.net/archdi
;;
"github.com")
archdiurl=matmoul.github.io/archdi >archdi
;;
esac
fi
curl -L $archdiurl >archdi
}
archdiinstallandlaunchchroot(){ archdiinstallandlaunchchroot(){
cd cd
#curl -L archdi.sourceforge.net/archdi >archdi #curl -L archdi.sourceforge.net/archdi >archdi
curl -L matmoul.github.io/archdi >archdi #curl -L matmoul.github.io/archdi >archdi >archdi
archdidownload
sh archdi -i sh archdi -i
archdi --chroot archdi --chroot
exit exit
@ -996,7 +1018,8 @@ archdiinstallandlaunchchroot(){
archdilaunchchroot(){ archdilaunchchroot(){
cd cd
#curl -L archdi.sourceforge.net/archdi >archdi #curl -L archdi.sourceforge.net/archdi >archdi
curl -L matmoul.github.io/archdi >archdi #curl -L matmoul.github.io/archdi >archdi >archdi
archdidownload
sh archdi --chroot sh archdi --chroot
rm archdi rm archdi
exit exit
@ -1004,7 +1027,8 @@ archdilaunchchroot(){
archdiinstallchroot(){ archdiinstallchroot(){
cd cd
#curl -L archdi.sourceforge.net/archdi >archdi #curl -L archdi.sourceforge.net/archdi >archdi
curl -L matmoul.github.io/archdi >archdi #curl -L matmoul.github.io/archdi >archdi >archdi
archdidownload
sh archdi -i sh archdi -i
exit exit
} }
@ -1018,6 +1042,8 @@ pressanykey(){
} }
loadstrings(){ loadstrings(){
txtselectserver="Select source server :"
txtmainmenu="Main Menu" txtmainmenu="Main Menu"
txtlanguage="Language" txtlanguage="Language"
txtsetkeymap="Set Keyboard Layout" txtsetkeymap="Set Keyboard Layout"

View file

@ -6,6 +6,8 @@
# notes : misc text... # notes : misc text...
txtselectserver="Sélectionnez le serveur source :"
txtmainmenu="Menu Principal" txtmainmenu="Menu Principal"
txtlanguage="Language" txtlanguage="Language"
txtsetkeymap="Disposition clavier" txtsetkeymap="Disposition clavier"

61
makerelease Normal file
View file

@ -0,0 +1,61 @@
#!/bin/bash
prjname=archfi
version=$(date +"%Y.%m.%d.%H.%M.%S")
branch=$(git rev-parse --abbrev-ref HEAD)
clear
read -p "Current branch is $branch. Continue ? (y/N)" choice
case "$choice" in
n|N|'' )
echo "cancel build !"
exit 1
;;
y|Y ) echo "Begin Build Release...";;
* )
echo "cancel build !"
exit 1
;;
esac
echo "Building version $version..."
echo ""
echo "Finalise archfi script..."
sed -i /apptitle=/c\apptitle=\""Arch Linux Fast Install (archfi) - Version: $version (GPLv3)"\" archfi
sed -i /baseurl=/c\baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master archfi
echo "Finalise CHANGELOG..."
sed -i '/Current\ Version\ :/{n;d}' CHANGELOG
sed -i '/Current\ Version\ :/a-------------------------------' CHANGELOG
sed -i "/Current\ Version\ :/c\Version\ :\ $version\ :" CHANGELOG
sed -i '1s/^/\n/' CHANGELOG
sed -i '1s/^/-----------------\n/' CHANGELOG
sed -i '1s/^/Current Version :\n/' CHANGELOG
echo "Make last commit..."
git commit -m "New Release : $version" *
echo "Merge branch $branch to master..."
git checkout master
git merge $branch
#git push
#Sourceforge :
#archfi
#baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master
# Make redirect Page
#pubfile=resources/sourceforge.net/pub/$prjname/index.php
#echo "<?php" > $pubfile
#echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile
#echo "exit;" >> $pubfile
#echo "?>" >> $pubfile
# End Make redirect Page
# Publish files
#scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/
#scp -r $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/
# End Publish files