You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-lang/scala/files/scala-2.11.6-no-git.patch

25 lines
919 B

--- scala-2.11.6-orig/tools/get-scala-commit-date 2015-02-25 12:22:22.000000000 +1100
+++ scala-2.11.6/tools/get-scala-commit-date 2015-04-17 20:32:27.899791213 +1000
@@ -10,8 +10,8 @@
[[ $# -eq 0 ]] || cd "$1"
-lastcommitdate=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 1)
-lastcommithours=$(git log --format="%ci" HEAD | head -n 1 | cut -d ' ' -f 2)
+lastcommitdate="2015-02-25"
+lastcommithours="00:00:00"
# 20120324
echo "${lastcommitdate//-/}-${lastcommithours//:/}"
--- scala-2.11.6-orig/tools/get-scala-commit-sha 2015-02-25 12:22:22.000000000 +1100
+++ scala-2.11.6/tools/get-scala-commit-sha 2015-04-17 20:32:03.655808474 +1000
@@ -12,7 +12,7 @@
# printf %016s is not portable for 0-padding, has to be a digit.
# so we're stuck disassembling it.
-hash=$(git log -1 --format="%H" HEAD)
+hash="092690e7bf71bb22e6e57afb7ea7f67fdfe31a0a"
hash=${hash#g}
hash=${hash:0:10}
echo "$hash"