26 lines
909 B
Bash
Executable File
26 lines
909 B
Bash
Executable File
#!/bin/bash
|
|
|
|
date_tag=$(date +%Y.%m.%d)
|
|
iso_name="Melawy-linux-${date_tag}-x86_64.iso"
|
|
|
|
mkdir -p ../sf/${date_tag}
|
|
sudo ./mkarchiso_last_my -v "."
|
|
|
|
cp -vf "../work/iso/arch/pkglist.x86_64.txt" "../sf/${date_tag}/Melawy-linux-${date_tag}-pkglist.txt"
|
|
|
|
echo "Sign ../sf/${date_tag}/${iso_name}.sig ../sf/${date_tag}/${iso_name}"
|
|
gpg --detach-sign --local-user BC8B600E8DDA1F4CB77B10D2BA803A261A5EE6B8 --output "../sf/${date_tag}/${iso_name}.sig" "../sf/${date_tag}/${iso_name}"
|
|
|
|
|
|
cd "../sf/${date_tag}"
|
|
|
|
echo "sha1sum ${iso_name}"
|
|
sha1sum "${iso_name}" > "${iso_name}.sha1"
|
|
|
|
echo "sha256sum ${iso_name}"
|
|
sha256sum "${iso_name}" > "${iso_name}.sha256"
|
|
|
|
notify-send -a "$(basename $(pwd)): Make" -t 999999999 "finished" "$(date '+%Y.%m.%d %H:%M:%S')"
|
|
|
|
echo "Ready"
|