Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2ef481287c
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (25 sloc) 0.776 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/bin/bash -xv

#-------------------------------------------------------------------
# Setup
#-------------------------------------------------------------------

FILE_EXT=tar.bz2
#FILE_EXT=zip
DEPENDS=${PWD}/dependencies.txt
INSTALL_ROOT=$PWD/../..
UPLOADS=$PWD/../../../uploads

mkdir -p ${UPLOADS}

#-------------------------------------------------------------------
# Execute
#-------------------------------------------------------------------

cd ${INSTALL_ROOT}

for PROJECT in `cat ${DEPENDS}`
do
echo ${INSTALL_ROOT}/${PROJECT}

# If the directory exists
if [ -d ${INSTALL_ROOT}/${PROJECT} ]; then

FILE="${UPLOADS}/${PROJECT}"

echo Creating ${FILE}...

tar -c ${PROJECT} | bzip2 > "${FILE}.tar.bz2"

zip -r "${FILE}.zip" ${PROJECT}

fi
done
Something went wrong with that request. Please try again.