1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-12 02:36:48 +01:00

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