Commits

Tobias Dammers committed 9238c6d

Bumped version

  • Participants
  • Parent commits 607fc00
  • Tags 0.18.0.1

Comments (0)

Files changed (4)

File bump-version

 # - the library cabal file (reporting the version to hackage)
 # - the executable cabal file (reporting the version to hackage)
 # - CommandArgs.hs (for --help)
+# - phpaco in the /phpaco subdir
 # - create a git repository tag
 # Also auto-commits all the modified files.
 VERSION=$1
 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

File cli/CommandArgs.hs

 deriving instance Data WrapMode
 deriving instance Typeable WrapMode
 
-programVersion = "0.18.0.0"
+programVersion = "0.18.0.1"
 
 data OutputFormat = OutputPHP
                   | OutputJavascript

File cli/hpaco.cabal

 name:                hpaco
-version:             0.18.0.0
+version:             0.18.0.1
 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.0
+               , hpaco-lib == 0.18.0.1
                ,       strict == 0.3.*
                -- ,       split >= 0.1 && < 0.2
                -- ,       safe >= 0.3.3 && < 0.4

File hpaco-lib/hpaco-lib.cabal

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