Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62204019
get_release_info.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 11, 14:52
Size
525 B
Mime Type
text/x-shellscript
Expires
Mon, May 13, 14:52 (2 d)
Engine
blob
Format
Raw Data
Handle
17618607
Attached To
rLIBMULTISCALE LibMultiScale
get_release_info.sh
View Options
#!/bin/bash
uuencode=$1
git diff > $2/release.patch
echo "#include <string>"
echo "std::string lm_release_info = \"\\n\\"
branch=$(git rev-parse --abbrev-ref --verify HEAD)
echo "$branch \\n\\"
git rev-parse --verify $branch | sed 's/$/\\n\\/'
git remote -v | sed 's/$/ \\n\\/'
echo "\\n\\"
$uuencode -m $2/release.patch release.patch | sed 's/$/\\n\\/'
echo "\\"
$uuencode -m $2/CMakeCache.txt CMakeCache.txt | sed 's/$/\\n\\/'
echo "\";"
git rev-parse --verify $branch | sed 's/$/\\n\\/' > $2/python/commit_hash
Event Timeline
Log In to Comment