This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Creates an eclipse project for a C/C++ Cmake app | |
PROJECTNAME=$(basename $(pwd)) | |
CURRENTDIR=$(pwd) | |
[ -f CMakeLists.txt ] || { echo "This folder does not contain a CMakeLists.txt. Exiting."; exit; } | |
[ -f ~/wsp/$PROJECTNAME ] && { echo "The project ~/wsp/$PROJECTNAME already exists. Exiting. "; exit; } | |
mkdir ~/wsp/$PROJECTNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/python3 <(cat << \EOF | |
import pickle | |
with open('unittests.pickle', 'rb') as handle: | |
data = pickle.load(handle) | |
print(data) | |
EOF | |
)|sed "s/),/),\n/g;s/},/},\n\n/g;s/',/',\n/g;s/{/{\n/g;" |
NewerOlder