all repos — tint2 @ 0aa4977940a9eaa6089c1c5f7bcf1fcc035c8a51

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

get_svnrev.sh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

FALLBACK=\"0.10-svn\"

if [[ $# -eq 0 ]]; then
  DIR=.
else
  DIR=$1
fi

if [[ -f version.h ]]; then
  REV_OLD=$(cat version.h  | cut -d" " -f3)
else
  REV_OLD=""
fi

if [[ -x "$(which svnversion 2>/dev/null)" && -d "${DIR}/.svn" ]] ; then
  REV=\"$(svnversion -n ${DIR})\"
else
  REV=${FALLBACK}
fi

if [[ ${REV_OLD} != ${REV} ]]; then
  echo "Building new version.h"
  echo "#define VERSION_STRING ${REV}" > version.h
fi