makefile misc + generator
This commit is contained in:
30
gen-makefile
30
gen-makefile
@@ -1,24 +1,12 @@
|
||||
#!/bin/bash
|
||||
mv Makefile Makefile.bak
|
||||
[ -f Makefile ] && mv Makefile Makefile.bak
|
||||
CHR_UPGRADE='^'
|
||||
CHR_UNINSTALL='/'
|
||||
|
||||
cat << EOF >> Makefile
|
||||
cat << EOF > Makefile
|
||||
# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
#===============================================
|
||||
# Scripts listed in ./packs
|
||||
#===============================================
|
||||
|
||||
EOF
|
||||
|
||||
for file in ./packs/*; do
|
||||
cat "$file" >> Makefile
|
||||
echo >> Makefile
|
||||
done;
|
||||
|
||||
cat << EOF >> Makefile
|
||||
#===============================================
|
||||
# Scripts listed in ./install
|
||||
#===============================================
|
||||
@@ -33,6 +21,20 @@ for file in ./install/*; do
|
||||
echo -e "# ${desc}\n${name}:\n\t@${file}\n" >> Makefile
|
||||
done;
|
||||
|
||||
cat << EOF >> Makefile
|
||||
|
||||
#===============================================
|
||||
# Scripts listed in ./packs
|
||||
#===============================================
|
||||
|
||||
EOF
|
||||
|
||||
for file in ./packs/*; do
|
||||
cat "$file" >> Makefile
|
||||
echo >> Makefile
|
||||
done;
|
||||
|
||||
|
||||
cat << EOF >> Makefile
|
||||
#===============================================
|
||||
# Scripts listed in ./upgrade
|
||||
|
||||
Reference in New Issue
Block a user