File doublecmd.diff of Package doublecmd-deb
Index: build.sh
===================================================================
--- build.sh (revision 5677)
+++ build.sh (working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
set -e
@@ -7,7 +7,13 @@
# "./build.sh all" it build doublecmd
# by Attid
+# Get revision number
+export DC_REVISION=$(dpkg-parsechangelog | grep '^Version:' | grep -Po '\d+$')
+# Update dcrevision.inc
+echo "// Created by Svn2RevisionInc" > src/dcrevision.inc
+echo "const dcRevision = '$DC_REVISION';" >> src/dcrevision.inc
+
# You can execute this script with different parameters:
# components - compiling components needed for DC
# plugins - compiling all DC plugins
Index: clean.sh
===================================================================
--- clean.sh (revision 5677)
+++ clean.sh (working copy)
@@ -33,3 +33,7 @@
# Remove debug files
rm -f doublecmd.zdli doublecmd.dbg
rm -rf doublecmd.dSYM
+
+# Restore dcrevision.inc
+echo "// Created by Svn2RevisionInc\r" > src/dcrevision.inc
+echo "const dcRevision = 'Unknown';\r" >> src/dcrevision.inc