Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P366
import-woof-archiv.py
Active
Public
Actions
Authored by
dereckson
on Oct 19 2024, 00:15.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F3669418: import-woof-archiv.py
Oct 19 2024, 00:15
2024-10-19 00:15:05 (UTC+0)
Subscribers
None
#!/bin/sh
set
-
e
BASE_DIR
=
$
HOME
/
dev
/
nasqueron
/
wurf
/
archiv
DATE
=
"Fri Dec 31 23:59:59 2004 +0000"
for
file
in
$
(
grep
fileserv
/
tmp
/
all
.
txt
)
do
cp
$
BASE_DIR
/
$
file
fileserv
.
py
git
add
fileserv
.
py
git
commit
-
m
"Import archive of $file"
--
author
=
"Simon Budig <simon@budig.de>"
--
date
=
"$DATE"
done
git
mv
fileserv
.
py
woof
.
py
for
file
in
$
(
grep
woof
/
tmp
/
all
.
txt
)
do
cp
$
BASE_DIR
/
$
file
woof
.
py
git
add
woof
.
py
git
commit
-
m
"Import archive of $file"
--
author
=
"Simon Budig <simon@budig.de>"
--
date
=
"$DATE"
done
Event Timeline
dereckson
created this paste.
Oct 19 2024, 00:15
2024-10-19 00:15:05 (UTC+0)
dereckson
mentioned this in
T2060: Document properly woof history in Git history
.
Oct 19 2024, 00:19
2024-10-19 00:19:03 (UTC+0)
Log In to Comment