chiark / gitweb /
pwx tools: Make location agnostic.
authorSven Eden <yamakuzure@gmx.net>
Fri, 9 Mar 2018 17:41:25 +0000 (18:41 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 9 Mar 2018 17:41:25 +0000 (18:41 +0100)
pwx/pwx_git_applier.sh
pwx/pwx_git_funcs.sh
pwx/pwx_git_getter.sh
pwx/pwx_last_mutual_commits.txt

index a58f5212044beb301ef685fa8366edbb596b62d4..62c4b1cea60c88418ac973bfe65c366c014c5cff 100755 (executable)
 #                                        letting the user have a look.
 
 # Common functions
-source pwx_git_funcs.sh
+PROGDIR="$(readlink -f $(dirname $0))"
+source ${PROGDIR}/pwx_git_funcs.sh
 
 # Version, please keep this current
 VERSION="0.5.0"
 
 
 # Global values to be filled in:
-PATCH_DIR="${HERE}/patches"
+PATCH_DIR="${PROGDIR}/patches"
 TAG_TO_USE=""
 
 
index 6656a46fbe368f86f0c1feed2adca07d9de33921..30bcebe6904f84efca4324154853b022f8ee2242 100644 (file)
@@ -66,7 +66,7 @@ declare HERE="$(pwd -P)"
 # @VARIABLE: PWX_COMMIT_FILE
 # @DESCRIPTION
 # The name of the file that stores mutual commit information.
-declare PWX_COMMIT_FILE="pwx_last_mutual_commits.txt"
+declare PWX_COMMIT_FILE="${PROGDIR}/pwx_last_mutual_commits.txt"
 
 
 # @VARIABLE: PWX_IS_PUSHD
index 2e4bbcffa711de03aaa13e2cc364bd130d9994aa..183cb1259b459d22fda26c829b01902cc8a4a137 100755 (executable)
@@ -46,7 +46,8 @@
 #                                         file list.
 
 # Common functions
-source pwx_git_funcs.sh
+PROGDIR="$(readlink -f $(dirname $0))"
+source ${PROGDIR}/pwx_git_funcs.sh
 
 # Version, please keep this current
 VERSION="0.4.0"
@@ -55,7 +56,7 @@ VERSION="0.4.0"
 SOURCE_TREE=""
 TAG_TO_USE=""
 LAST_MUTUAL_COMMIT=""
-OUTPUT="${HERE}/patches"
+OUTPUT="${PROGDIR}/patches"
 EXTRA_GIT_OPTS=""
 
 
index 70810f6b6f37036391066323c232b8259fd23fe3..418e1ba27cce76d563908330d2969990e3db13c9 100644 (file)
@@ -7,3 +7,5 @@ v232-stable 79a5d862a7abe903f456a75d6d1ca3c11adfa379
 v233-stable 589fa9087a49e4250099bb6a4cf00358379fa3a4
 master 265710c2055254a98ed6dcd6aa172ca509a33553
 master-last efaa3176ad0e763a0fafd4519d4391813a88ba0e
+v236 83fefc8888620ce27ba39d906bd879bbcb6bc84e
+v236-last f78a88beca362e62ca242499950a097fbcdb10d2