Skip to content

Commit

Permalink
multiline a set of replacements for easier readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacks committed Mar 25, 2018
1 parent 1a52a02 commit dacf0ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion srcdist/dist-module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ echo " "
echo "Creating package description file $modulename.info:"

md5=`/sbin/md5 -q $fullname.tar.gz`
/usr/bin/sed -e 's/\@VERSION\@/'$version'/' -e 's/\@REVISION\@/1/' -e 's/\@MD5\@/'$md5'/' -e 's,%n-%v.tar,mirror:custom:fink/%n-%v.tar.gz,' -e 's/NoSourceDirectory: true//' <$fullname/$modulename.info.in >$modulename.info
/usr/bin/sed \
-e 's/\@VERSION\@/'$version'/' \
-e 's/\@REVISION\@/1/' \
-e 's/\@MD5\@/'$md5'/' \
-e 's,%n-%v.tar,mirror:custom:fink/%n-%v.tar.gz,' \
-e 's/NoSourceDirectory: true//' \
<$fullname/$modulename.info.in >$modulename.info

echo "CustomMirror: <<" >> $modulename.info
echo " Primary: http://west.dl.sourceforge.net/sourceforge/" >> $modulename.info
Expand Down

0 comments on commit dacf0ce

Please sign in to comment.