Skip to content

Commit

Permalink
generic prepare stub
Browse files Browse the repository at this point in the history
  • Loading branch information
timrdf committed Jul 20, 2015
1 parent fd245f4 commit 4ee8dec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/cr-create-trigger.sh.prepare
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ fi
if [[ -e "$1" ]]; then
while [[ $# -gt 0 ]]; do
mundane="$1" && shift
pretty="$mundane.pretty"
# automatic="automatic/${source#source/}"
if [[ ! -e $pretty || $mundane -nt $pretty ]]; then
echo "$mundane => $pretty"
mkdir -p `dirname $pretty`
automatic="automatic/${mundane#source/}"
if [[ ! -e $automatic || $mundane -nt $automatic ]]; then
echo "$mundane => $automatic"
mkdir -p `dirname $automatic`
# do some transform here.
fi
done
Expand Down

0 comments on commit 4ee8dec

Please sign in to comment.