Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Added release script and css for readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Olofsson authored and Per Olofsson committed Mar 7, 2013
1 parent e6162bd commit 22c6b0e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.css
@@ -0,0 +1,11 @@
<style type="text/css">

body {
font-family: sans-serif;
}

li {
list-style: disc;
}

</style>
2 changes: 2 additions & 0 deletions Releases/.gitignore
@@ -0,0 +1,2 @@
*.dmg
LoginLog-*.*
21 changes: 21 additions & 0 deletions Releases/create_dmg.sh
@@ -0,0 +1,21 @@
#!/bin/bash

srcdir="$1"

if [ -z "$srcdir" -o ! -d "$srcdir" ]; then
echo "Usage: $0 srcdir"
exit 1
fi

name=`basename "$srcdir"`

echo "Cleaning"
find "$srcdir" -name .DS_Store -print0 | xargs -0 rm -f

echo "Adding documentation"
markdown ../README.markdown | cat ../README.css - | tidy -q -i > "$srcdir/$name.html"

echo "Creating image"
dmg_fname="$srcdir.dmg"
sudo -p "Password for %p@%h: " hdiutil create -srcfolder "$srcdir" -uid 0 -gid 0 -ov "$dmg_fname"
sudo -p "Password for %p@%h: " chown ${UID} "$dmg_fname"

0 comments on commit 22c6b0e

Please sign in to comment.