tqwnet_nodelist/compile_nodelist.sh
2020-03-15 22:46:58 +00:00

18 lines
284 B
Bash
Executable File

#!/bin/bash
ORIGDIR=$PWD
WORKDIR="~/git/tqwnet_nodelist"
cd $WORKDIR
makenl -d nodelist.txt
absfile=$(ls -rt outfile/* | tail -1)
file=$(echo $(basename $absfile))
ext=$(echo $file | awk -F. '{ print $2 }')
newext="z${ext:1:2}"
zip -j9 zip/tqwnet.$newext $absfile
cd $ORIGDIR