Japanese translation of message catalog for Sawfish Window-Manager
修订版 | 74b1a7d4c52d5e5e22413b3ff0c2f8317a55a0a1 (tree) |
---|---|
时间 | 2016-07-31 17:54:05 |
作者 | Christopher Roy Bratusek <nano@jpbe...> |
Commiter | Christopher Roy Bratusek |
010_honours_SOURCE_DATE_EPOCH_for_build_h [Debian] by Alexis Bienvenüe
@@ -0,0 +1,32 @@ | ||
1 | +Description: Honours SOURCE_DATE_EPOCH for build.h | |
2 | + Honours SOURCE_DATE_EPOCH when building build.h, to get reproducible build. | |
3 | + See https://reproducible-builds.org/specs/source-date-epoch/ | |
4 | +Author: Alexis Bienvenüe <pado@passoire.fr> | |
5 | + | |
6 | +--- sawfish-1.11.orig/build-info | |
7 | ++++ sawfish-1.11/build-info | |
8 | +@@ -20,8 +20,11 @@ localedir="$5" | |
9 | + sys_name="$HOSTNAME.$LOCALDOMAIN" | |
10 | + user_name="$LOGNAME" | |
11 | + | |
12 | +-build_date="`date +'%a %b %e %Y'`" | |
13 | +-build_time="`date +'%T %Z'`" | |
14 | ++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" | |
15 | ++DATE_FMT="%Y-%m-%d" | |
16 | ++build_date=$(date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT") | |
17 | ++DATE_FMT="%T %Z" | |
18 | ++build_time=$(date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT") | |
19 | + | |
20 | + cat >src/build.h <<EOF | |
21 | + /* build.h -- Definitions relating to the current build | |
22 | +@@ -36,8 +39,8 @@ cat >src/build.h <<EOF | |
23 | + #define SAWFISH_EXECDIR "$sawfishexecdir" | |
24 | + #define SAWFISH_LOCALEDIR "$localedir" | |
25 | + | |
26 | +-#define BUILD_HOST "$sys_name" | |
27 | +-#define BUILD_USER "$user_name" | |
28 | ++#define BUILD_HOST "unknown" | |
29 | ++#define BUILD_USER "unknown" | |
30 | + | |
31 | + #define BUILD_DATE "$build_date" | |
32 | + #define BUILD_TIME "$build_time" |
@@ -0,0 +1 @@ | ||
1 | +010_honours_SOURCE_DATE_EPOCH_for_build_h |