3 # clean upstream source to achieve DFSG compliance
4 # Copyright 2009 by Bdale Garbee. GPL v2 or any later version.
7 # preserve the man pages upstream has provided since 1.28
8 tmpfile=$(mktemp -p /tmp tar-doc.XXXXXXXX)
9 tar cf $tmpfile doc/tar.1 doc/rmt.8
14 # This is a shell archive (produced by GNU sharutils 4.15.2).
15 # To extract the files from this archive, save it to some FILE, remove
16 # everything before the '#!/bin/sh' line above, then type 'sh FILE'.
19 # Made on 2016-07-22 13:04 MDT by <bdale@rover>.
20 # Source directory was '/home/bdale/debian/tar'.
22 # Existing files will *not* be overwritten, unless '-c' is specified.
26 # ------ ---------- ------------------------------------------
27 # 638 -rw-r--r-- doc/README
28 # 51 -rw-r--r-- doc/Makefile.in
29 # 51 -rw-r--r-- doc/Makefile
31 MD5SUM=${MD5SUM-md5sum}
32 f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
33 test -n "${f}" && md5check=true || md5check=false
35 echo 'Note: not verifying md5sums. Consider installing GNU coreutils.'
49 if test -f $dir/gettext \
50 && ($dir/gettext --version >/dev/null 2>&1)
52 case `$dir/gettext --version 2>&1 | sed 1q` in
53 *GNU*) gettext_dir=$dir
65 if test -f $dir/shar \
66 && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
68 locale_dir=`$dir/shar --print-text-domain-dir`
76 TEXTDOMAINDIR=$locale_dir
80 echo="$gettext_dir/gettext -s"
84 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
85 then if (echo -n test; echo 1,2,3) | grep n >/dev/null
88 else shar_n=-n shar_c= ; fi
89 else shar_n= shar_c='\c' ; fi
93 st2tr=123123592001.5 # old SysV 14-char limit
96 if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
97 test ! -f ${st1} && test -f ${f}; then
98 shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
100 elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
101 test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
102 shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
104 elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
105 test ! -f ${st3} && test -f ${f}; then
106 shar_touch='touch -am $3$4$5$6$2 "$8"'
111 ${echo} 'WARNING: not restoring timestamps. Consider getting and
112 installing GNU '\''touch'\'', distributed in GNU coreutils...'
115 rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
117 if test ! -d ${lock_dir} ; then :
118 else ${echo} "lock directory ${lock_dir} exists"
122 then ${echo} "x - created lock directory ${lock_dir}."
123 else ${echo} "x - failed to create lock directory ${lock_dir}."
126 # ============= doc/README ==============
127 if test ! -d 'doc'; then
130 then ${echo} "x - created directory doc."
131 else ${echo} "x - failed to create directory doc."
135 if test -n "${keep_file}" && test -f 'doc/README'
137 ${echo} "x - SKIPPING doc/README (file already exists)"
140 ${echo} "x - extracting doc/README (text)"
141 sed 's/^X//' << 'SHAR_EOF' > 'doc/README' &&
142 Unfortunately, the info document describing tar is licensed under the GFDL with
143 invariant cover texts, which violates the Debian Free Software Guidelines. As
144 a result, the info documentation for tar has been completely removed from the
145 Debian package. Fortunately, since 1.28 the upstream tar package includes
146 man page sources, so at least that documentation is included in the Debian
149 If you want to read the complete info documentation for GNU tar, please either
150 install the 'tar-doc' package from Debian's non-free repository, or refer to
151 the online version at <http://www.gnu.org/software/tar/manual/index.html>.
154 (set 20 16 07 22 13 04 11 'doc/README'
155 eval "${shar_touch}") && \
156 chmod 0644 'doc/README'
158 then ${echo} "restore of doc/README failed"
162 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/README': 'MD5 check failed'
164 2f70316837b4f65972a24e61ab8f0897 doc/README
168 test `LC_ALL=C wc -c < 'doc/README'` -ne 638 && \
169 ${echo} "restoration warning: size of 'doc/README' is not 638"
172 # ============= doc/Makefile.in ==============
173 if test ! -d 'doc'; then
176 then ${echo} "x - created directory doc."
177 else ${echo} "x - failed to create directory doc."
181 if test -n "${keep_file}" && test -f 'doc/Makefile.in'
183 ${echo} "x - SKIPPING doc/Makefile.in (file already exists)"
186 ${echo} "x - extracting doc/Makefile.in (text)"
187 sed 's/^X//' << 'SHAR_EOF' > 'doc/Makefile.in' &&
197 (set 20 16 07 22 13 03 35 'doc/Makefile.in'
198 eval "${shar_touch}") && \
199 chmod 0644 'doc/Makefile.in'
201 then ${echo} "restore of doc/Makefile.in failed"
205 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/Makefile.in': 'MD5 check failed'
207 426042328bcada50997fe11fff91ca61 doc/Makefile.in
211 test `LC_ALL=C wc -c < 'doc/Makefile.in'` -ne 51 && \
212 ${echo} "restoration warning: size of 'doc/Makefile.in' is not 51"
215 # ============= doc/Makefile ==============
216 if test -n "${keep_file}" && test -f 'doc/Makefile'
218 ${echo} "x - SKIPPING doc/Makefile (file already exists)"
221 ${echo} "x - extracting doc/Makefile (text)"
222 sed 's/^X//' << 'SHAR_EOF' > 'doc/Makefile' &&
232 (set 20 16 07 22 13 03 35 'doc/Makefile'
233 eval "${shar_touch}") && \
234 chmod 0644 'doc/Makefile'
236 then ${echo} "restore of doc/Makefile failed"
240 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/Makefile': 'MD5 check failed'
242 426042328bcada50997fe11fff91ca61 doc/Makefile
246 test `LC_ALL=C wc -c < 'doc/Makefile'` -ne 51 && \
247 ${echo} "restoration warning: size of 'doc/Makefile' is not 51"
250 if rm -fr ${lock_dir}
251 then ${echo} "x - removed lock directory ${lock_dir}."
252 else ${echo} "x - failed to remove lock directory ${lock_dir}."
256 tar xf $tmpfile doc/tar.1 doc/rmt.8
257 git add doc/Makefile doc/Makefile.in doc/README doc/tar.1 doc/rmt.8