diff --git a/shim_copy_baseDir.sh b/shim_copy_baseDir.sh index 0e18616..a5f7969 100755 --- a/shim_copy_baseDir.sh +++ b/shim_copy_baseDir.sh @@ -1,4 +1,7 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then @@ -97,9 +100,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0:`pwd`/libsr3c.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION}:`pwd`/libsr3c.so.${VERSION} #export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99 diff --git a/shim_copy_flatten.sh b/shim_copy_flatten.sh index 594794f..4ab3f19 100755 --- a/shim_copy_flatten.sh +++ b/shim_copy_flatten.sh @@ -1,4 +1,7 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then @@ -95,9 +98,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION} export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99 diff --git a/shim_copy_mirror.sh b/shim_copy_mirror.sh index d73b205..98dc0b9 100755 --- a/shim_copy_mirror.sh +++ b/shim_copy_mirror.sh @@ -1,5 +1,8 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then mkdir ~/test @@ -98,9 +101,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION} export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99 diff --git a/shim_copy_mirror_sftp.sh b/shim_copy_mirror_sftp.sh index 6044c08..384decd 100755 --- a/shim_copy_mirror_sftp.sh +++ b/shim_copy_mirror_sftp.sh @@ -1,4 +1,7 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then @@ -94,9 +97,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION} export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99 diff --git a/shim_copy_strip.sh b/shim_copy_strip.sh index fcb8b4b..2f7e11f 100755 --- a/shim_copy_strip.sh +++ b/shim_copy_strip.sh @@ -1,4 +1,7 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then @@ -108,9 +111,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION} export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99 diff --git a/shim_copy_strip_slash.sh b/shim_copy_strip_slash.sh index 6b1f740..696a28f 100755 --- a/shim_copy_strip_slash.sh +++ b/shim_copy_strip_slash.sh @@ -1,4 +1,7 @@ +VERSION=`head -1 debian/changelog| sed 's/.*(//' | sed 's/).*//'` +MAJOR_VERSION=`echo \"${VERSION}\" | sed 's+\..*++g'` + # job step 0 - setup... if [ ! -d ~/test ]; then @@ -101,9 +104,9 @@ sr3 start subscribe/local_copy.conf export SR_POST_CONFIG=local_post.conf if [ "${SYSTEM_SHIM_TEST}" ]; then - export LD_PRELOAD=libsr3shim.so.1.0.0 + export LD_PRELOAD=libsr3shim.so.${VERSION} else - export LD_PRELOAD=`pwd`/libsr3shim.so.1.0.0:`pwd`/libsr3c.so.1.0.0 + export LD_PRELOAD=`pwd`/libsr3shim.so.${VERSION}:`pwd`/libsr3c.so.${VERSION} #export LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} fi export SR_SHIMDEBUG=99