Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: da5da7ee2d
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (25 sloc) 0.776 kb
#!/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
Jump to Line
Something went wrong with that request. Please try again.