3 # clean upstream source to achieve DFSG compliance
4 # Copyright 2009 by Bdale Garbee. GPL v2 or any later version.
10 # This is a shell archive (produced by GNU sharutils 4.6.3).
11 # To extract the files from this archive, save it to some FILE, remove
12 # everything before the `#!/bin/sh' line above, then type `sh FILE'.
15 # Made on 2009-02-24 22:24 MST by <bdale@rover>.
16 # Source directory was `/home/bdale/debian/tar'.
18 # Existing files will *not* be overwritten, unless `-c' is specified.
22 # ------ ---------- ------------------------------------------
23 # 51 -rw-r--r-- doc/Makefile
24 # 51 -rw-r--r-- doc/Makefile.in
25 # 571 -rw-r--r-- doc/README
27 MD5SUM=${MD5SUM-md5sum}
28 f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
29 test -n "${f}" && md5check=true || md5check=false
31 echo 'Note: not verifying md5sums. Consider installing GNU coreutils.'
39 if test "$gettext_dir" = FAILED && test -f $dir/gettext \
40 && ($dir/gettext --version >/dev/null 2>&1)
42 case `$dir/gettext --version 2>&1 | sed 1q` in
43 *GNU*) gettext_dir=$dir ;;
46 if test "$locale_dir" = FAILED && test -f $dir/shar \
47 && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
49 locale_dir=`$dir/shar --print-text-domain-dir`
53 if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
57 TEXTDOMAINDIR=$locale_dir
61 echo="$gettext_dir/gettext -s"
63 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
64 then if (echo -n test; echo 1,2,3) | grep n >/dev/null
67 else shar_n=-n shar_c= ; fi
68 else shar_n= shar_c='\c' ; fi
72 st2tr=123123592001.5 # old SysV 14-char limit
75 if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
76 test ! -f ${st1} && test -f ${f}; then
77 shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
79 elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
80 test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
81 shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
83 elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
84 test ! -f ${st3} && test -f ${f}; then
85 shar_touch='touch -am $3$4$5$6$2 "$8"'
90 ${echo} 'WARNING: not restoring timestamps. Consider getting and'
91 ${echo} 'installing GNU `touch'\'', distributed in GNU coreutils...'
94 rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
96 if test ! -d ${lock_dir}
97 then : ; else ${echo} 'lock directory '${lock_dir}' exists'
101 then ${echo} 'x - created lock directory `'${lock_dir}\''.'
102 else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
105 # ============= doc/Makefile ==============
106 if test ! -d 'doc'; then
109 then ${echo} 'x - created directory `doc'\''.'
110 else ${echo} 'x - failed to create directory `doc'\''.'
114 if test -f 'doc/Makefile' && test "$first_param" != -c; then
115 ${echo} 'x -SKIPPING doc/Makefile (file already exists)'
117 ${echo} 'x - extracting doc/Makefile (text)'
118 sed 's/^X//' << 'SHAR_EOF' > 'doc/Makefile' &&
128 (set 20 09 02 24 22 23 00 'doc/Makefile'; eval "$shar_touch") &&
129 chmod 0644 'doc/Makefile'
131 then ${echo} 'restore of doc/Makefile failed'
135 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/Makefile: MD5 check failed'
137 426042328bcada50997fe11fff91ca61 doc/Makefile
140 test `LC_ALL=C wc -c < 'doc/Makefile'` -ne 51 && \
141 ${echo} 'restoration warning: size of doc/Makefile is not 51'
144 # ============= doc/Makefile.in ==============
145 if test ! -d 'doc'; then
148 then ${echo} 'x - created directory `doc'\''.'
149 else ${echo} 'x - failed to create directory `doc'\''.'
153 if test -f 'doc/Makefile.in' && test "$first_param" != -c; then
154 ${echo} 'x -SKIPPING doc/Makefile.in (file already exists)'
156 ${echo} 'x - extracting doc/Makefile.in (text)'
157 sed 's/^X//' << 'SHAR_EOF' > 'doc/Makefile.in' &&
167 (set 20 09 02 24 22 23 00 'doc/Makefile.in'; eval "$shar_touch") &&
168 chmod 0644 'doc/Makefile.in'
170 then ${echo} 'restore of doc/Makefile.in failed'
174 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/Makefile.in: MD5 check failed'
176 426042328bcada50997fe11fff91ca61 doc/Makefile.in
179 test `LC_ALL=C wc -c < 'doc/Makefile.in'` -ne 51 && \
180 ${echo} 'restoration warning: size of doc/Makefile.in is not 51'
183 # ============= doc/README ==============
184 if test -f 'doc/README' && test "$first_param" != -c; then
185 ${echo} 'x -SKIPPING doc/README (file already exists)'
187 ${echo} 'x - extracting doc/README (text)'
188 sed 's/^X//' << 'SHAR_EOF' > 'doc/README' &&
189 Unfortunately, the info document describing tar is licensed under the GFDL with
190 invariant cover texts, which violates the Debian Free Software Guidelines. As
191 a result, the info documentation for tar has been completely removed from the
192 Debian package. Instead, we deliver a tar man page that was created from
193 scratch for the Debian project.
195 If you want to read the complete documentation for GNU tar, please either
196 install the 'tar-doc' package from Debian's non-free repository, or refer to
197 the online version at <http://www.gnu.org/software/tar/manual/index.html>.
200 (set 20 09 02 24 22 23 00 'doc/README'; eval "$shar_touch") &&
201 chmod 0644 'doc/README'
203 then ${echo} 'restore of doc/README failed'
207 ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'doc/README: MD5 check failed'
209 2ca08c08d4bff8e2dcf2b33f717512ef doc/README
212 test `LC_ALL=C wc -c < 'doc/README'` -ne 571 && \
213 ${echo} 'restoration warning: size of doc/README is not 571'
216 if rm -fr ${lock_dir}
217 then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
218 else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
222 git add doc/Makefile doc/Makefile.in doc/README