Too lazy to comment
This commit is contained in:
14
textures/unwadsel.sh
Executable file
14
textures/unwadsel.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
for fp in "$@"; do
|
||||
fpf=`readlink -f $fp`
|
||||
f=`basename $fp`
|
||||
|
||||
echo "fpf: ${fpf}"
|
||||
echo "f: ${f}"
|
||||
name=${f%.wad}
|
||||
[[ ! -d $name ]] && mkdir $name
|
||||
pushd $name
|
||||
unwad $fpf
|
||||
popd
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user