[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tar maybe needs --prepend-directory-name
From: |
Dan Jacobson |
Subject: |
tar maybe needs --prepend-directory-name |
Date: |
28 Oct 2001 07:15:10 +0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
tar may need an option --prepend-directory-name:
Instead of
-------------old makefile-------------------------
W=wwwoffle-jidanni
T=/tmp/$W
revise:
mkdir $T
cp -p $W.html ChangeLog wwwoffle-chunks \
/root/bin/wwwoffle-outgoing-regexp-rm \
/root/bin/wwwoffle-cache-regexp-rm \
/root/bin/connect-time-summary.sh \
$T
cd /tmp && tar cvvzf $(HOME)/geocities/$W.tgz $W
rm -r /tmp/$W
--------------------------------------------------
Maybe I could just write
-------------new makefile-------------------------
sources=wwwoffle-outgoing-regexp-rm wwwoffle-cache-regexp-rm wwwoffle-chunks
revise:
cd /root/bin && tar -cvvz --prepend-directory wwwoffle-jidanni \
-f $(HOME)/geocities/$W.tgz $(sources)
#and then maybe move to the other directory where $W.html and
#ChangeLog are, use the same --prepend-directory-name and use the tar
append action...
--
http://www.geocities.com/jidanni Tel+886-4-25854780
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tar maybe needs --prepend-directory-name,
Dan Jacobson <=