forked from grantrostig/cpp_by_example
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmk_src.sh
More file actions
executable file
·24 lines (21 loc) · 571 Bytes
/
mk_src.sh
File metadata and controls
executable file
·24 lines (21 loc) · 571 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# mk_src - Prepares a project to be made via linux "make"
# ?? mk_make, mk_maker, pre_make
# Creates symlinked source code files into ./src & ./inc,
# from a single source directory to allow our Makefile to work,
# which requires src/ and inc/.
# It also symlinks the generic Makefile into project.
# Author: Grant Rostig
# License: Boost 1.0
CWD=$(pwd)
#ln -svri ../../Makefile_make_template/Makefile ${CWD}/Makefile
mkdir -v src inc
cd src
rm -i *.cpp
ln -sfiv ../*.cpp ./
cd ../inc
rm -i *.hpp
rm -i *.h
#ln -sfiv ../*.h ./
ln -sfiv ../*.hpp ./
cd ..