all repos — tint2 @ 7a350a5e834e4b67478f778841cd1d9383c79707

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

Fix finding ChangeLog when building

Keep the first optional argument of get_version.sh as "--strict" and
make the second the PROJECT_SOURCE_DIR plus trailing slash from
CMakeLists.txt
Chris Mayo aklhfex@gmail.com
commit

7a350a5e834e4b67478f778841cd1d9383c79707

parent

afadf3ea3fc4109f55f2f76bdb0e01327acef7b3

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -217,7 +217,7 @@ SET(ASAN_C_FLAGS "")

SET(ASAN_L_FLAGS "") endif() -add_custom_target( version ALL "${PROJECT_SOURCE_DIR}/get_version.sh" "\"${PROJECT_SOURCE_DIR}\"" ) +add_custom_target( version ALL "${PROJECT_SOURCE_DIR}/get_version.sh" -- "\"${PROJECT_SOURCE_DIR}/\"" ) link_directories( ${X11_LIBRARY_DIRS} ${PANGOCAIRO_LIBRARY_DIRS}
M get_version.shget_version.sh

@@ -33,10 +33,10 @@ fi

fi VERSION=$(git describe --exact-match 2>/dev/null || echo "$MAJOR-git$(git show -s --pretty=format:%ci | cut -d ' ' -f 1 | tr -d '-').$(git show -s --pretty=format:%h)")$DIRTY else - VERSION=$( (head -n 1 ChangeLog || head -n 1 ../ChangeLog) | cut -d ' ' -f 2) + VERSION=$(head -n 1 ${2}ChangeLog | cut -d ' ' -f 2) if [ $VERSION = "master" ] then - VERSION=$VERSION-$( (head -n 1 ChangeLog || head -n 1 ../ChangeLog) | cut -d ' ' -f 1) + VERSION=$VERSION-$(head -n 1 ${2}ChangeLog | cut -d ' ' -f 1) fi fi
M packaging/make_ubuntu.shpackaging/make_ubuntu.sh

@@ -14,7 +14,7 @@ MINOR="1"

fi # Get version (and check that the repository is clean) -VERSION=$(../get_version.sh --strict) +VERSION=$(../get_version.sh --strict ../) if [ ! $? -eq 0 ] then echo >&2 "Error: get_version.sh failed!"