mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-06 09:07:13 -04:00
Updated packaging script to build in the active directory
This commit is contained in:
+11
-14
@@ -12,21 +12,18 @@ distro=5 # TODO remove when other distros are supported
|
|||||||
echo -e '\nThe value entered in this field will only affect the version reported to the package manager. The latest source is used regardless.\n'
|
echo -e '\nThe value entered in this field will only affect the version reported to the package manager. The latest source is used regardless.\n'
|
||||||
read -r -p "Version number: " version
|
read -r -p "Version number: " version
|
||||||
|
|
||||||
rm -rf sshyp/
|
|
||||||
git clone https://github.com/rwinkhart/sshyp.git
|
|
||||||
|
|
||||||
if [ "$distro" == "5" ] || [ "$distro" == "6" ]; then
|
if [ "$distro" == "5" ] || [ "$distro" == "6" ]; then
|
||||||
echo -e '\nPackaging as generic...\n'
|
echo -e '\nPackaging as generic...'
|
||||||
mkdir -p sshyp/var/lib/sshyp
|
mkdir -p var/lib/sshyp
|
||||||
mkdir -p sshyp/usr
|
mkdir -p usr
|
||||||
cp -r sshyp/bin sshyp/usr/
|
cp -r bin usr/
|
||||||
cp -r sshyp/share sshyp/usr/
|
cp -r share usr/
|
||||||
mkdir -p sshyp/usr/share/man/man1
|
mkdir -p usr/share/man/man1
|
||||||
cp sshyp/extra/manpage sshyp/usr/share/man/man1/sshyp.1
|
cp extra/manpage usr/share/man/man1/sshyp.1
|
||||||
gzip sshyp/usr/share/man/man1/sshyp.1
|
gzip usr/share/man/man1/sshyp.1
|
||||||
tar -cf sshyp/sshyp-"$version".tar.xz sshyp/usr/ sshyp/var/
|
tar -cf sshyp-"$version".tar.xz usr/ var/
|
||||||
rm -rf sshyp/usr/ sshyp/var/
|
rm -rf usr/ var/
|
||||||
echo -e '\nsha512 sum:'
|
echo -e '\nsha512 sum:'
|
||||||
sha512sum sshyp/sshyp-"$version".tar.xz
|
sha512sum sshyp-"$version".tar.xz
|
||||||
echo -e "\nPackaging complete.\n"
|
echo -e "\nPackaging complete.\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user