auxiliary scripts

This commit is contained in:
Mirai Computing 2016-02-21 19:16:42 +03:00
parent 82c3ec8276
commit 74ecd0c021
9 changed files with 55 additions and 2 deletions

29
export.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
workdir=`pwd`
exportdir=$HOME/Export
revision=`git-revision`
exportname=cbp2make-rev$revision
target=$exportdir/$exportname
mkdir -p $target
mkdir -p $target/res
cp -p res/cbp2make.svg $target/res/cbp2make.svg
cp -p res/cbp2make.png $target/res/cbp2make.png
cp -pr lib $target
cp -pr src $target
cp -p cbp2make.cbp $target
cp -p cbp2make.cbp.mak.unix $target
cp -p cbp2make.cbp.mak.windows $target
cp -p Doxyfile $target
cp -p cbp2make.cfg $target
cp -p changelog.txt $target
cp -p COPYING $target
cp -p usage.txt $target
cp -p wx-config.sh $target
cd $exportdir
cd $exportname
for l in 0 1 2 3 4 5 6 7 8 9; do { for d in `find -type d`; do chmod 0755 $d; done; }; done
for f in `find -type f`; do chmod 0644 $f; done;
cd ..
rm -f $exportname.tar.gz
tar -cf $exportname.tar $exportname
gzip $exportname.tar

2
git-revision Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
git log --pretty=oneline | wc -l

3
install.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
#cp -p bin/Debug/cbp2make ~/bin
cp -p bin/Release/cbp2make ~/bin

4
make-dox.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
bin/Release/cbp2make --help > usage.txt
cp -p usage.txt src/doc/usage.txt
doxygen Doxyfile

2
reset-revision.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
cp -p src/revision.h.tpl src/revision.h

View File

@ -1,7 +1,6 @@
#ifndef REVISION_H
#define REVISION_H
#define REVISION_NUMBER 148
#define REVISION_NUMBER 1
#endif

4
update-makefiles.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
bin/Debug/cbp2make --local -in cbp2make.cbp -unix -windows --wrap-objects --wrap-options --with-deps --target-case lower --verbose
#bin/Debug/cbp2make --local -in cbp2make.cbp --verbose
cp -p cbp2make.cbp.mak.unix Makefile

10
update-revision.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
header="src/revision.h"
revision=$((`git-revision`+1))
echo "#ifndef REVISION_H" > $header
echo "#define REVISION_H" >> $header
echo >> $header
echo "#define REVISION_NUMBER $revision" >> $header
echo >> $header
echo "#endif" >> $header
echo >> $header

0
wx-config.sh Normal file → Executable file
View File