split release job into two

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-02-21 11:03:45 -08:00
parent a09d905598
commit 13219e1d5f
5 changed files with 13 additions and 3 deletions

View file

@ -1,32 +0,0 @@
#!/bin/sh
if [ ! "$USER" == "root" ]; then
echo you will likely need root to place in /bin.
echo comment out this test to continue without it
exit
fi
if [ ! -n "$SUDO_USER" ]; then
echo SUDO_USER not set, so I dont know where to install to
exit
fi
libdir=/home/$SUDO_USER/.flesh/
if [ ! -d "$libdir" ]; then
mkdir $libdir
fi
if [ -d "/home/$SUDO_USER/.emacs.d" ]; then
mv flesh-mode.el /home/$SUDO_USER/.emacs.d/
chown $SUDO_USER:$SUDO_USER /home/$SUDO_USER/.emacs.d/flesh-mode.el
fi
mv userlib.f $libdir
mv genbind.f $libdir
mv interactive-devel.f $libdir
mv default_fleshrc.f /home/$USER/.fleshrc
chown -R $SUDO_USER:$SUDO_USER $libdir
mv flesh /bin/flesh
chmod +x /bin/flesh