mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-13 21:28:38 +00:00
18 lines
495 B
Bash
18 lines
495 B
Bash
|
#!/bin/bash
|
||
|
#
|
||
|
# Write the SVN revision to an include file.
|
||
|
# This should be run before compiling code on Linux or Macintosh.
|
||
|
#
|
||
|
revision_filename=src/common/pa_svnrevision.h
|
||
|
|
||
|
# Run svnversion first to make sure it is installed before corrupting the
|
||
|
# include file.
|
||
|
svnversion .
|
||
|
|
||
|
# Update the include file with the current SVN revision.
|
||
|
echo -n "#define PA_SVN_REVISION " > ${revision_filename}
|
||
|
svnversion . >> ${revision_filename}
|
||
|
|
||
|
echo ${revision_filename} now contains
|
||
|
cat ${revision_filename}
|