Print
Category: Joomla FAQ
Hits: 11329
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

asI could not find where to download an AkeebaSubscriptions installable package. Akeeba website provides text 'Only PHP source code is provided' and a link to GitHub. The GitHub repo has a complicated instruction how to build a package.

So I created a small bash script to automatically initialize needed repos and to build the latest package. Surely needed dependencies (like PEAR libraries) still need to be installed manually.

Image-missing.svg

Run the script in an empty folder and get a resulting zip file. The code I use is below

{emailcloak=off} 

#!/bin/sh

DIRECTORY=buildfiles;
GITREPO=git@github.com:akeeba/buildfiles.git
if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
    git clone $GITREPO;
fi

DIRECTORY=strapper
GITREPO=git@github.com:akeeba/strapper.git
if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
    git clone $GITREPO;
fi

DIRECTORY=fof3
GITREPO=git@github.com:akeeba/fof.git
if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
    git clone $GITREPO;
    mv fof fof3
fi

DIRECTORY=akeebasubs
GITREPO=git@github.com:akeeba/akeebasubs.git
if [ ! -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY doesn't exist.
    git clone $GITREPO;
fi


;kdialog --passivepopup 'Building Akeebasubs' --title 'Build started';
rm -f *.zip
cd buildfiles; git pull; cd ..;#php ../buildfiles/tools/link.php `pwd`;  cd build; phing link; phing git; cd ../..;
cd strapper; git pull; php ../buildfiles/tools/link.php `pwd`;  cd build; phing link; phing git; cd ../..;
cd fof3; git pull; php ../buildfiles/tools/link.php `pwd`;  cd build; phing link; phing git; cd ../..;
cd akeebasubs; git pull; php ../buildfiles/tools/link.php `pwd`;  cd build; phing link; phing git; cd ../..;
cp akeebasubs/release/* ./
;kdialog --passivepopup 'Building Akeebasubs' --title 'Build FINISHED!!!';

Found a typo? Please select it and press Ctrl + Enter.
FaLang translation system by Faboba