make clean
+# Remove temporary files from the "debian" subdirectory
+rm -rf debian/refind debian/*.log
+
# Prepare a place and copy files there....
-mkdir -p ../snapshots/$1/refind-$1/icons
-cp --preserve=timestamps icons/*.icns ../snapshots/$1/refind-$1/icons/
-cp -a docs images keys fonts banners include EfiLib libeg mok refind filesystems gptsync refind.spec install.sh mkrlconf.sh mvrefind.sh CREDITS.txt NEWS.txt BUILDING.txt COPYING.txt LICENSE.txt README.txt refind.inf Make.tiano Make.common Makefile refind.conf-sample ../snapshots/$1/refind-$1
+mkdir -p ../snapshots/$1/refind-$1/icons/licenses ../snapshots/$1/refind-$1/icons/svg
+cp --preserve=timestamps icons/*png icons/README ../snapshots/$1/refind-$1/icons/
+cp --preserve=timestamps -r icons/licenses/* ../snapshots/$1/refind-$1/icons/licenses/
+cp --preserve=timestamps -r icons/svg/* ../snapshots/$1/refind-$1/icons/svg/
+cp -a debian docs images keys fonts banners include EfiLib libeg mok net refind filesystems gptsync refind.spec refind-install mkrlconf mvrefind mountesp CREDITS.txt NEWS.txt BUILDING.txt COPYING.txt LICENSE.txt README.txt refind.inf Make.tiano Make.common Makefile refind.conf-sample ../snapshots/$1/refind-$1
-# Go there and prepare a souce code zip file....
+# Go there and prepare a souce code tarball....
cd ../snapshots/$1/
-rm -f refind-src-$1.zip
-zip -9r refind-src-$1.zip refind-$1
+rm -f refind-src-$1.tar.gz
+tar cvf refind-src-$1.tar refind-$1
+gzip -9 refind-src-$1.tar
+
+# Remove SVG files, since they aren't needed for binary packages....
+rm -rf refind-$1/icons/svg
# Build the IA32 binaries
cd refind-$1
cp --preserve=timestamps gptsync/gptsync_x64.efi refind-bin-$1/refind/tools_x64/
fi
cp refind-bin-$1/refind/refind_x64.efi $StartDir
-cp -a docs keys banners fonts COPYING.txt LICENSE.txt README.txt CREDITS.txt NEWS.txt install.sh mkrlconf.sh mvrefind.sh refind-bin-$1
+cp -a docs keys banners fonts COPYING.txt LICENSE.txt README.txt CREDITS.txt NEWS.txt refind-install mkrlconf mvrefind mountesp refind-bin-$1
# Prepare the final .zip file
zip -9r ../refind-bin-$1.zip refind-bin-$1
rm -r refind-$1
# Prepare the RPM & Debian package files
-cp refind-src-$1.zip ~/rpmbuild/SOURCES/
+cp refind-src-$1.tar.gz ~/rpmbuild/SOURCES/
rpmbuild -ba $StartDir/refind.spec
mv ~/rpmbuild/RPMS/*/refind-$1* ./
mv ~/rpmbuild/SRPMS/refind-$1* ./
sudo alien --to-deb -k -c refind-$1*x86_64.rpm
sudo chown rodsmith: refind*deb
-rm ~/rpmbuild/SOURCES/refind-src-$1.zip
+rm ~/rpmbuild/SOURCES/refind-src-$1.tar.gz
# Clean up
if [[ $SignIt == 1 ]] ; then