1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-06 19:25:47 +01:00

29 lines
564 B
Plaintext
Raw Normal View History

Generate data for creating test archives
----------------------------------------
echo 'foobar' > /tmp/foo
# root perms required for the next command
echo 'numbers' > /123
echo 'qwerty' > very-long-long-long-long-name
echo 'asdfgh' > very-long-long-long-long-name2
echo 'newline' > 'very-long-name
-with-newline'
echo 'newline' > 'a
b'
mkdir 'dir'
echo 'file-in-a-dir' > dir/file
Create archive.ar
-----------------
ar qP archive.ar /tmp/foo /123 very-long-long-long-long-name very-long-long-long-long-name2 'very-long-name
-with-newline' 'a
b' dir/file