mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
11 lines
298 B
Bash
Executable file
11 lines
298 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# DC revision number
|
|
export DC_REVISION=$(svnversion $1 | sed -e 's/\([0-9]*\).*/\1/')
|
|
|
|
# Update dcrevision.inc
|
|
echo "// Created by Svn2RevisionInc" > $2/units/dcrevision.inc
|
|
echo "const dcRevision = '$DC_REVISION';" >> $2/units/dcrevision.inc
|
|
|
|
# Return revision
|
|
echo $DC_REVISION
|