Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- p="$(ls 'xonotic-'*'-maps.pk3' | tail -n 1)"
- b='xonotic-maps'
- listMaps () {
- unzip -l "${p}" \
- | tail -n +4 \
- | head -n -2 \
- | egrep '\.bsp$' \
- | sed -e 's|^.* maps/||;s|\.bsp$||'
- }
- filterSystem () {
- egrep -v '^_'
- }
- filterInvalid () {
- egrep -v '_'
- }
- ln -sfv "${p}" "${b}_0.dpk"
- for m in $(listMaps | filterSystem | filterInvalid)
- do
- d="map-${m}_0.dpkdir"
- mkdir -pv "${d}"
- echo "${b}" > "${d}/DEPS"
- done
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement