Skip to content
This repository was archived by the owner on Jan 30, 2018. It is now read-only.

Commit d2b38c8

Browse files
Per OlofssonPer Olofsson
Per Olofsson
authored and
Per Olofsson
committed
Include README in dmg distributions.
1 parent cd247d0 commit d2b38c8

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Distributions/create_dmg.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@ if [ -z "$srcdir" ]; then
77
exit 1
88
fi
99

10+
name=`basename "$srcdir"`
11+
12+
echo "Cleaning"
1013
find "$srcdir" -name .DS_Store -print0 | xargs -0 rm -f
1114

12-
dmg_fname="$srcdir.dmg"
15+
echo "Adding documentation"
16+
markdown ../README.markdown | cat ../README.css - | tidy -q -i > "$srcdir/$name.html"
1317

14-
printf "\nCreating image\n"
18+
echo "Creating image"
19+
dmg_fname="$srcdir.dmg"
1520
sudo -p "Password for %p@%h: " hdiutil create -srcfolder "$srcdir" -uid 0 -gid 0 -ov "$dmg_fname"
1621
sudo -p "Password for %p@%h: " chown ${UID} "$dmg_fname"

README.css

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<style type="text/css">
2+
3+
body {
4+
font-family: sans-serif;
5+
}
6+
7+
li {
8+
list-style: disc;
9+
}
10+
11+
</style>

README.markdown

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Version History
2424
* Initial release.
2525

2626

27+
Home Page
28+
---------
29+
30+
CreateUserPkg is hosted on [GitHub](https://github.com/MagerValp/CreateUserPkg)
31+
2732
License
2833
-------
2934

0 commit comments

Comments
 (0)