Commits

Tobias Dammers committed bd3361b

Bumped version

Comments (0)

Files changed (4)

 sed -i'~' hpaco-lib/hpaco-lib.cabal -e '2,2s/^\(version:\s*\)[^\s]\+$/\1'$VERSION'/'
 sed -i'~' cli/CommandArgs.hs -e 's/^programVersion = .*$/programVersion = "'$VERSION'"/'
 rm cli/hpaco.cabal~ cli/CommandArgs.hs~ hpaco-lib/hpaco-lib.cabal~
-(
-	echo "<?php"
-	echo 'namespace Paco;'
-	echo -n 'function getPacoVersion() { return "'
-	echo -n $VERSION
-	echo '"; }'
-) > phpaco/common/Version.php
-
-git commit -am"Bumped version"
-git tag $VERSION
-cd phpaco
 git commit -am"Bumped version"
 git tag $VERSION
+if [ -e phpaco ]
+	then
+		cd phpaco
+		(
+			echo "<?php"
+			echo 'namespace Paco;'
+			echo -n 'function getPacoVersion() { return "'
+			echo -n $VERSION
+			echo '"; }'
+		) > common/Version.php
+		git commit -am"Bumped version"
+		git tag $VERSION
+fi

cli/CommandArgs.hs

 deriving instance Data WrapMode
 deriving instance Typeable WrapMode
 
-programVersion = "0.18.0.1"
+programVersion = "0.18.0.2"
 
 data OutputFormat = OutputPHP
                   | OutputJavascript
 name:                hpaco
-version:             0.18.0.1
+version:             0.18.0.2
 synopsis:            Modular template compiler
 description:         CLI front-end to the hpaco-lib library. Compiles Paco
                      template source code to JavaScript or PHP, or interprets
   build-depends:       base == 4.*
                ,       filepath >= 1.1 && < 1.4
                ,       cmdargs >= 0.9 && < 0.10
-               , hpaco-lib == 0.18.0.1
+               , hpaco-lib == 0.18.0.2
                ,       strict == 0.3.*
                -- ,       split >= 0.1 && < 0.2
                -- ,       safe >= 0.3.3 && < 0.4

hpaco-lib/hpaco-lib.cabal

 name:                hpaco-lib
-version:             0.18.0.1
+version:             0.18.0.2
 synopsis:            Modular template compiler library
 description:         Template compiler library, compiles template code into
                      PHP or Javascript, or interprets it directly.