Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if [ "$update_available" == 'true' ]
then
# Makefile Changes
if [ -e $ports_dir/Makefile ]
then
echo "Makefile exists, creating backup."
cp $ports_dir/Makefile $ports_dir/Makefile.orig
sed -e "s/Created by.*/Created by: $name <$email>/g" \
-e "s/PORTVERSION=.*/PORTVERSION=\t"$version_prefix"/g" \
-e "s/DISTVERSIONSUFFIX=.*/DISTVERSIONSUFFIX="$version_suffix"/g" \
-e "s/MAINTAINER=.*/MAINTAINER=\t"$email"/g" $ports_dir/Makefile > $ports_dir/Makefile.new
mv $ports_dir/Makefile.new $ports_dir/Makefile
fi
# Generate distinfo
# aria2c multi threads and connections.
# aria2c -s16 -x16 --dir=$distfiles -c $download_url
cd $ports_dir && make makesum
else
echo "Plex is running $version, no update needed."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment