2018-12-19 03:22:02 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
HTMLDIR="/var/www/voidbuilds.xyz/public"
|
|
|
|
PKGLISTDIR="package_lists"
|
|
|
|
|
2019-11-19 00:48:57 -07:00
|
|
|
if [ ! -f sha256sums.txt ];then
|
|
|
|
echo "checksum file not found, aborting!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-12-19 03:22:02 -07:00
|
|
|
if [ -d "${HTMLDIR}" ];then
|
|
|
|
rm ${HTMLDIR}/*.iso
|
|
|
|
rm ${HTMLDIR}/*.txt
|
|
|
|
rm ${HTMLDIR}/*.sig
|
|
|
|
mv sha256sums.txt build
|
|
|
|
mv sha256sums.txt.sig build
|
|
|
|
mv build/* ${HTMLDIR}
|
|
|
|
else
|
|
|
|
echo "${HTMLDIR} does not exist"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "${PKGLISTDIR}" ];then
|
|
|
|
mkdir "${PKGLISTDIR}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm ${PKGLISTDIR}/*
|
|
|
|
cp base-x64.packages ${PKGLISTDIR}/base-x64.packages.txt
|
|
|
|
cp cinnamon-x64.packages ${PKGLISTDIR}/cinnamon-x64.packages.txt
|
|
|
|
cp mate-x64.packages ${PKGLISTDIR}/mate-x64.packages.txt
|
|
|
|
cp lxde-x64.packages ${PKGLISTDIR}/lxde-x64.packages.txt
|
|
|
|
cp lxqt-x64.packages ${PKGLISTDIR}/lxqt-x64.packages.txt
|
|
|
|
cp i3-x64.packages ${PKGLISTDIR}/i3-x64.packages.txt
|
|
|
|
#cp kde-x64.packages ${PKGLISTDIR}/kde-x64.packages.txt
|
|
|
|
#cp gnome-x64.packages ${PKGLISTDIR}/gnome-x64.packages.txt
|
|
|
|
cp xfce-x64.packages ${PKGLISTDIR}/xfce-x64.packages.txt
|
|
|
|
|
|
|
|
cp -r ${PKGLISTDIR} ${HTMLDIR}
|