Skip to content

Instantly share code, notes, and snippets.

@Nikoli
Created May 20, 2012 14:19
Show Gist options
  • Save Nikoli/2758286 to your computer and use it in GitHub Desktop.
Save Nikoli/2758286 to your computer and use it in GitHub Desktop.
PN=mplayer2
NAMESUF="${PN/mplayer/}"
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
-i configure || die
sed -e "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
-e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
-e "s/er.1/er${NAMESUF}.1/g" \
-i Makefile || die
sed -e "s/mplayer/${PN}/" \
-i TOOLS/midentify.sh || die
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment