New idea: work out of one directory
This commit is contained in:
parent
1008182c64
commit
6e57e10169
|
@ -23,21 +23,14 @@ else
|
||||||
version=$1
|
version=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Creating tarball for LibreTime ${suffix}."
|
||||||
|
|
||||||
# Adding dos2unix package
|
# Adding dos2unix package
|
||||||
apt update -y -q
|
apt update -y -q
|
||||||
apt install dos2unix php composer -y
|
apt install dos2unix php composer -y
|
||||||
|
|
||||||
echo "Creating tarball for LibreTime ${suffix}."
|
|
||||||
|
|
||||||
target=/tmp/libretime-${suffix}
|
|
||||||
target_file=libretime-${suffix}.tar.gz
|
|
||||||
|
|
||||||
rm -rf $target
|
|
||||||
rm -f $target_file
|
|
||||||
mkdir $target
|
|
||||||
|
|
||||||
echo -n "Creating VERSION file for ${suffix}..."
|
echo -n "Creating VERSION file for ${suffix}..."
|
||||||
echo -n "${suffix}" > ${target}/VERSION
|
echo -n "${suffix}" > ./VERSION
|
||||||
echo " Done"
|
echo " Done"
|
||||||
|
|
||||||
echo -n "Running composer install..."
|
echo -n "Running composer install..."
|
||||||
|
@ -51,15 +44,15 @@ echo " Done"
|
||||||
#find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec mv {}.min {} \;
|
#find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec mv {}.min {} \;
|
||||||
#echo "Done"
|
#echo "Done"
|
||||||
|
|
||||||
cd /tmp/
|
cd ..
|
||||||
find libretime-${suffix} -type f -exec dos2unix {} \;
|
find libretime-${suffix} -type f -exec dos2unix {} \;
|
||||||
echo -n "Creating tarball..."
|
echo -n "Creating tarball..."
|
||||||
tar -czf $target_file \
|
tar -czf libretime-${suffix}.tar.gz \
|
||||||
--owner=root --group=root \
|
--owner=root --group=root \
|
||||||
--exclude-vcs \
|
--exclude-vcs \
|
||||||
--exclude .zfproject.xml \
|
--exclude .zfproject.xml \
|
||||||
--exclude .gitignore \
|
--exclude .gitignore \
|
||||||
--exclude .gitattributes \
|
--exclude .gitattributes \
|
||||||
--exclude dev_tools \
|
--exclude dev_tools \
|
||||||
libretime-${suffix}
|
libretime
|
||||||
echo " Done"
|
echo " Done"
|
||||||
|
|
Loading…
Reference in New Issue