Browse Source

make-dist: generate strace-*.tar.gz, strace.dsc, and strace.spec

Change make-dist to generate strace-*.tar.gz, strace.dsc,
and strace.spec in addition to strace-*.tar.xz.

* configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
* make-dsc: New file.
* make-dist: Use it.
* .gitignore: Add strace-*.tar.gz, strace.dsc, and strace.spec.
Dmitry V. Levin 3 years ago
parent
commit
2afa76e29a
4 changed files with 58 additions and 2 deletions
  1. 3
    0
      .gitignore
  2. 1
    1
      configure.ac
  3. 5
    1
      make-dist
  4. 49
    0
      make-dsc

+ 3
- 0
.gitignore View File

@@ -52,7 +52,10 @@
52 52
 /sen.h
53 53
 /stamp-h1
54 54
 /strace
55
+/strace-*.tar.gz
55 56
 /strace-*.tar.xz
57
+/strace.dsc
58
+/strace.spec
56 59
 /sys_func.h
57 60
 /test-driver
58 61
 /tests-m32

+ 1
- 1
configure.ac View File

@@ -36,7 +36,7 @@ AC_INIT([strace],
36 36
 AC_CONFIG_SRCDIR([strace.c])
37 37
 AC_CONFIG_AUX_DIR([.])
38 38
 AC_CONFIG_HEADERS([config.h])
39
-AM_INIT_AUTOMAKE([foreign nostdinc dist-xz no-dist-gzip silent-rules parallel-tests])
39
+AM_INIT_AUTOMAKE([foreign nostdinc dist-xz silent-rules parallel-tests])
40 40
 AM_MAINTAINER_MODE
41 41
 AC_CANONICAL_HOST
42 42
 

+ 5
- 1
make-dist View File

@@ -28,4 +28,8 @@ else
28 28
 	echo 'SKIP: make news-check'
29 29
 fi
30 30
 
31
-mv -f strace-*.tar.xz ..
31
+./make-dsc strace-*.tar.gz > ../strace.dsc
32
+
33
+cat strace.spec > ../strace.spec
34
+
35
+mv -f strace-*.tar.[gx]z ..

+ 49
- 0
make-dsc View File

@@ -0,0 +1,49 @@
1
+#!/bin/sh -e
2
+
3
+exec < /dev/null
4
+
5
+cat <<__EOF__
6
+Format: 1.0
7
+$(sed '/^Source:[[:space:]]*/!d;q' debian/control)
8
+Binary: $(sed '/^Package:[[:space:]]*/!d;s///' debian/control |
9
+	tr '\n' ' ' | sed 's/ ./,&/g')
10
+$(sed '/^Architecture:[[:space:]]*/!d;q' debian/control)
11
+Version: $(sed -n '1s/^[^(]*(\([^)]\+\)).*/\1/p' debian/changelog)
12
+$(sed '/^Maintainer:[[:space:]]*/!d;q' debian/control)
13
+$(sed '/^Homepage:[[:space:]]*/!d;q' debian/control)
14
+$(sed '/^Standards-Version:[[:space:]]*/!d;q' debian/control)
15
+$(sed '/^Build-Depends:[[:space:]]*/!d;q' debian/control)
16
+Package-List:
17
+ strace deb $(
18
+	sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
19
+	sed '/^Priority:[[:space:]]*/!d;s///;q' debian/control) arch=$(
20
+	sed -n "/^Package:[[:space:]]*strace\$/,/^\$/p" debian/control |
21
+		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
22
+ strace64 deb $(sed '/^Section:[[:space:]]*/!d;s///;q' debian/control) $(
23
+	sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
24
+		sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
25
+	sed -n "/^Package:[[:space:]]*strace64\$/,/^\$/p" debian/control |
26
+		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
27
+ strace-udeb udeb $(
28
+	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
29
+		sed '/^Section:[[:space:]]*/!d;s///;q') $(
30
+	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
31
+		sed '/^Priority:[[:space:]]*/!d;s///;q') arch=$(
32
+	sed -n "/^Package:[[:space:]]*strace-udeb\$/,/^\$/p" debian/control |
33
+		sed -e '/^Architecture:[[:space:]]*/!d;s///' -e 's/ /,/g')
34
+Checksums-Sha1:
35
+$(for f; do echo " $(
36
+	sha1sum -- "$f" | sed 's/ .*//') $(
37
+	stat -c %s -- "$f") $(
38
+	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
39
+Checksums-Sha256:
40
+$(for f; do echo " $(
41
+	sha256sum -- "$f" | sed 's/ .*//') $(
42
+	stat -c %s -- "$f") $(
43
+	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
44
+Files:
45
+$(for f; do echo " $(
46
+	md5sum -- "$f" | sed 's/ .*//') $(
47
+	stat -c %s -- "$f") $(
48
+	echo $f | sed 's/-/_/;s/\.tar/.orig&/')"; done)
49
+__EOF__

Loading…
Cancel
Save