mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
17 lines
366 B
Batchfile
Executable file
17 lines
366 B
Batchfile
Executable file
#!/bin/sh
|
|
|
|
export REVISION_INC=$1/dcrevision.inc
|
|
|
|
rm -f $REVISION_INC
|
|
cp ../units/dcrevision.inc $REVISION_INC
|
|
|
|
export REVISION=$(svnversion ../ | sed -e 's/\([0-9]*\).*/\1/')
|
|
|
|
if [ ! -z $REVISION ]; then
|
|
|
|
echo "// Created by Svn2RevisionInc" > $REVISION_INC
|
|
echo "const dcRevision = '$REVISION';" >> $REVISION_INC
|
|
|
|
fi
|
|
|
|
echo "Subversion revision" $REVISION
|