File doublecmd.diff of Package doublecmd-deb

Index: build.sh
===================================================================
--- build.sh	(revision 9674)
+++ build.sh	(working copy)
@@ -1,4 +1,4 @@
-#!/bin/sh 
+#!/bin/bash 
 
 set -e
 
@@ -7,7 +7,15 @@
 # "./build.sh all" it build doublecmd
 #                                                 by Attid
 
+# Get revision number
+export VERSION=$(dpkg-parsechangelog | grep '^Version:')
+declare $(echo $VERSION | awk -v FS="(+svn|+git|-)" '{print "REVISION="$2+1" COMMIT="$3}')
 
+# Update dcrevision.inc
+echo "// Created by Git2RevisionInc"   >  src/dcrevision.inc
+echo "const dcRevision = '$REVISION';" >> src/dcrevision.inc
+echo "const dcCommit = '$COMMIT';"     >> 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 9674)
+++ clean.sh	(working copy)
@@ -34,3 +34,6 @@
 # Remove debug files
 rm -f  doublecmd.zdli doublecmd.dbg
 rm -rf doublecmd.dSYM
+
+# Remove dcrevision.inc
+rm -f src/dcrevision.inc
openSUSE Build Service is sponsored by