This repository has been archived by the owner on Mar 19, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added release script and css for readme.
- Loading branch information
Per Olofsson
authored and
Per Olofsson
committed
Mar 7, 2013
1 parent
e6162bd
commit 22c6b0e
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<style type="text/css"> | ||
|
||
body { | ||
font-family: sans-serif; | ||
} | ||
|
||
li { | ||
list-style: disc; | ||
} | ||
|
||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.dmg | ||
LoginLog-*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |