(Arne Babenhauserheide)
2012-06-30: get und use the bare host part for infocalypse --fcphost. Allows get und use the bare host part for infocalypse --fcphost. Allows custom setups (as long as the fcp port has not been changed).
diff --git a/setup_infocalypse_on_linux.sh b/setup_infocalypse_on_linux.sh --- a/setup_infocalypse_on_linux.sh +++ b/setup_infocalypse_on_linux.sh @@ -11,12 +11,18 @@ hgext="$default" fi -echo -n "On which host does your node run? [$defaulthost]: " +echo -n "On which host and port does your node run? [$defaulthost]: " read host if [ "$host" == "" ]; then - host="$defaulthost" + urlhost="$defaulthost" fi +# get the bare host part for infocalypse --fcphost +arr=(${urlhost//:\/\// }) +var=${arr[1]} +arr=(${var//:/ }) +host=${arr[0]} + # enter hgext. Create it if necessary and requested cd $hgext if [ "$?" != "0" ]; then @@ -63,7 +69,7 @@ hg clone http://bitbucket.org/durin42/hg-git hg init infocalypse cd infocalypse -wget ${host}/USK@CiKlAk~D2IZ3cJye0R5VPp0nRRUB-zKd6L5hy9qvlkE,qaG86acZQy0I5stLe5wOCt61-GQDT~h-NQ~7C2nl-lc,AQACAAE/infocalypse-for-code-sharing/3/infocalypse.bundle +wget ${urlhost}/USK@CiKlAk~D2IZ3cJye0R5VPp0nRRUB-zKd6L5hy9qvlkE,qaG86acZQy0I5stLe5wOCt61-GQDT~h-NQ~7C2nl-lc,AQACAAE/infocalypse-for-code-sharing/3/infocalypse.bundle hg pull infocalypse.bundle hg update @@ -77,9 +83,9 @@ echo "Running the infocalypse setup" hg fn-setup echo "Updating infocalypse from the official repo of djk" -hg fn-pull --aggressive --uri USK@kRM~jJVREwnN2qnA8R0Vt8HmpfRzBZ0j4rHC2cQ-0hw,2xcoQVdQLyqfTpF2DpkdUIbHFCeL4W~2X1phUYymnhM,AQACAAE/wiki_hacking.R1/19 +hg fn-pull --fcphost $host --aggressive --uri USK@kRM~jJVREwnN2qnA8R0Vt8HmpfRzBZ0j4rHC2cQ-0hw,2xcoQVdQLyqfTpF2DpkdUIbHFCeL4W~2X1phUYymnhM,AQACAAE/wiki_hacking.R1/19 echo "Getting further updates from the repo of ArneBab" -hg fn-pull --aggressive --uri USK@ko8wbLzQDQc~1gmMEvO8ewpcH0yQKDExMs4kpFDoeOQ,0KpmSJb35Q6UwgdhAJpTMH0jnjUriv7DtaFtTq3dlRI,AQACAAE/infocalypse-bab.R1/1 +hg fn-pull --fcphost $host --aggressive --uri USK@ko8wbLzQDQc~1gmMEvO8ewpcH0yQKDExMs4kpFDoeOQ,0KpmSJb35Q6UwgdhAJpTMH0jnjUriv7DtaFtTq3dlRI,AQACAAE/infocalypse-bab.R1/1 echo "Setup finished. Enjoy using Infocalypse."